You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of dealing with 2 useEffect to try to synchronize a state, I think it would be better to have a `useMemo` as we already have all the information.
Maybe something like that (didn't test, just a quick write)
Maybe something like that (didn't test, just a quick write)
As "internally" we only need to know if it's initial state or signing state, this could be replaced by an simple boolean state
Similar comment for the rest.
Also, when using a
useEffect
we need to make sure to have the cleanup function when dealing with statesOriginally posted by @antho1404 in #117 (comment)
The text was updated successfully, but these errors were encountered: