GitHub repository: sergiodxa/use-safe-callback
Primary language: TypeScript
Created: 2020-07-23T06:31:23Z
Description: 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