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
|
|
@ -42,8 +42,8 @@ export default function Page() {
|
||||||
updateSession();
|
updateSession();
|
||||||
router.refresh();
|
router.refresh();
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
}, [state.status, router, updateSession]);
|
||||||
}, [state.status]);
|
|
||||||
const handleSubmit = (formData: FormData) => {
|
const handleSubmit = (formData: FormData) => {
|
||||||
setEmail(formData.get('email') as string);
|
setEmail(formData.get('email') as string);
|
||||||
formAction(formData);
|
formAction(formData);
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,8 @@ export default function Page() {
|
||||||
updateSession();
|
updateSession();
|
||||||
router.refresh();
|
router.refresh();
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
}, [state, router, updateSession]);
|
||||||
}, [state.status]);
|
|
||||||
|
|
||||||
const handleSubmit = (formData: FormData) => {
|
const handleSubmit = (formData: FormData) => {
|
||||||
setEmail(formData.get('email') as string);
|
setEmail(formData.get('email') as string);
|
||||||
formAction(formData);
|
formAction(formData);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue