Can not pass mutation of useAuthSignOut as dependencies of useEffect #91
Open
Description
I want to do this:
const mutation = useAuthSignOut(firebaseAuth);
useEffect(() => {
mutation.mutate();
}, [mutation]); // Can not pass in mutation as a dependency
But when I do so, the page freezes.
I have to remove it from the dependencies array to make it work. Why is that?
Metadata
Assignees
Labels
No labels