Fix infinite loop on register (#1266)

This commit is contained in:
Howard 2025-10-09 18:49:46 +01:00 committed by GitHub
parent 6da09f64da
commit 9987b25964
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);