Addressed all Claude review issues.
This commit is contained in:
parent
c04cd9958d
commit
446a9bc1cf
1 changed files with 228 additions and 58 deletions
|
|
@ -108,8 +108,13 @@ const AuthDebugger = ({
|
|||
});
|
||||
}, [serverUrl, updateAuthState]);
|
||||
|
||||
const fetchFn =
|
||||
connectionType === "proxy" && config ? createProxyFetch(config) : undefined;
|
||||
const fetchFn = useMemo(
|
||||
() =>
|
||||
connectionType === "proxy" && config
|
||||
? createProxyFetch(config)
|
||||
: undefined,
|
||||
[connectionType, config],
|
||||
);
|
||||
|
||||
const stateMachine = useMemo(
|
||||
() => new OAuthStateMachine(serverUrl, updateAuthState, fetchFn),
|
||||
|
|
|
|||
Loading…
Reference in a new issue