From 51bb35b01d19dbfd435872b4f9845e1796993a70 Mon Sep 17 00:00:00 2001 From: JOY <5027251+JOY@users.noreply.github.com> Date: Tue, 22 Sep 2026 16:00:56 +0700 Subject: [PATCH] fix(auth): include fetch in the retry callback deps The React Compiler flagged the manual deps as not matching the inferred ones (missing fetch), skipping memoization optimization for the auth error component (react-hooks/preserve-manual-memoization error-level) plus an exhaustive-deps warning. Aligning the dependency array lets the compiler preserve its optimization. --- apps/frontend/src/components/auth/register.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/frontend/src/components/auth/register.tsx b/apps/frontend/src/components/auth/register.tsx index e9498edf6e..7853286db1 100644 --- a/apps/frontend/src/components/auth/register.tsx +++ b/apps/frontend/src/components/auth/register.tsx @@ -122,7 +122,7 @@ function AuthErrorState({ console.error('Failed to restart the SSO flow:', e); } window.location.href = '/auth/login'; - }, [attempts]); + }, [attempts, fetch]); return (