use-safe-callback (npm): 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.
Keywords: hooks|react|react-hooks|react-state|safe-callbacks