Revert "fix(auth): registration flow infinite loop and session state sync" (#1220)
This commit is contained in:
parent
6857f04ccb
commit
60e19d9693
2 changed files with 4 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue