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
As talked about here and explained in this article. The setState function from the useState hook should be in the dependency array when it is called from useEffect. This is not done in the documentation. The clearest example is probably from the hooks-faq where this example is given: