Add navigate to useEffect deps
This commit is contained in:
parent
abc7e00bbe
commit
21fbf0e495
|
|
@ -50,7 +50,7 @@ export default function LoginPage() {
|
|||
replace: true,
|
||||
});
|
||||
}
|
||||
}, []);
|
||||
}, [navigate]);
|
||||
|
||||
const loginMutation = useMutation({
|
||||
mutationFn: async (values: FormSchema) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user