Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return () => { globalStateListeners.splice(globalStateListeners.indexOf(fn), 1); }; }, []);
Hooks for managing, caching and syncing asynchronous and remote data in React