use-safe-callback
Wrap a function to ensure you never call it if a component is unmounted, useful to avoid cases where an async code could finish after a component has unmounted and it tries to update a state
// repository documentation
Was this content helpful?
(0 ratings)
