fix(auth): registration flow infinite loop and session state sync (#1199)

This commit is contained in:
josh 2025-09-15 12:07:15 +01:00 committed by GitHub
parent 70b1b54dde
commit a1844c8294
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View file

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

View file

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