Addressed all Claude review issues.

This commit is contained in:
Bob Dickinson 2026-04-07 10:33:28 -07:00
commit 446a9bc1cf

View file

@ -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),