Idle Callbacks
React hooks that wrap window.requestIdleCallback().
All of these hooks will automatically take care of unregistering / cancelling any pending idle callbacks that you started if the component unmounts for example.
React hooks that wrap window.requestIdleCallback().
All of these hooks will automatically take care of unregistering / cancelling any pending idle callbacks that you started if the component unmounts for example.