Fix infinite loop on login (#1265)

This commit is contained in:
Howard 2025-10-09 18:49:31 +01:00 committed by GitHub
parent fda9f1a322
commit 6da09f64da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ export default function Page() {
router.refresh(); router.refresh();
} }
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, [state.status, router.refresh, updateSession]); }, [state.status]);
const handleSubmit = (formData: FormData) => { const handleSubmit = (formData: FormData) => {
setEmail(formData.get("email") as string); setEmail(formData.get("email") as string);