Fix infinite loop on login (#1265)
This commit is contained in:
parent
fda9f1a322
commit
6da09f64da
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ export default function Page() {
|
|||
router.refresh();
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [state.status, router.refresh, updateSession]);
|
||||
}, [state.status]);
|
||||
|
||||
const handleSubmit = (formData: FormData) => {
|
||||
setEmail(formData.get("email") as string);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue