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
In the React hook, the whole options object is passed as a useEffect dependency. This means the effect will re-run on every render unless the user memoizes the options or defines them outside the render function—which most users probably won’t do.
Also, the setter function returned by the hook could be memoized with useCallback, to avoid breaking memoization in user components that depend on it.
In the React hook, the whole options object is passed as a useEffect dependency. This means the effect will re-run on every render unless the user memoizes the options or defines them outside the render function—which most users probably won’t do.
Also, the setter function returned by the hook could be memoized with useCallback, to avoid breaking memoization in user components that depend on it.