Skip to content

Commit c12abf0

Browse files
committed
fix: remove unnecessary dependency from useEffect in auth-redirect-handler
- Updated the dependency array in the useEffect hook to exclude 'isChecking' for correctness - Ensures the effect runs only when 'router' and 'supabase' change, preventing unnecessary re-renders
1 parent 6b00a48 commit c12abf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/playground/components/auth-redirect-handler.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default function AuthRedirectHandler() {
5959
};
6060

6161
checkPendingAnalysis();
62-
}, [router, supabase, isChecking]);
62+
}, [router, supabase]);
6363

6464
return null; // This component doesn't render anything
6565
}

0 commit comments

Comments
 (0)