Revert "fix(auth): registration flow infinite loop and session state sync" (#1220)

This commit is contained in:
josh 2025-09-19 14:40:53 +01:00 committed by GitHub
parent 6857f04ccb
commit 60e19d9693
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View file

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