fix(auth): resolve infinite loop in login and register pages (#1187)

This commit is contained in:
Abdelrahman Abdelmoaty 2025-09-19 16:42:28 +03:00 committed by GitHub
parent 60e19d9693
commit b1d254283b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -42,7 +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);