GitHub / sergiodxa / 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
JSON API: http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiodxa%2Fuse-safe-callback
PURL: pkg:github/sergiodxa/use-safe-callback
Stars: 12
Forks: 1
Open issues: 14
License: mit
Language: TypeScript
Size: 1.18 MB
Dependencies parsed at: Pending
Created at: about 5 years ago
Updated at: about 1 year ago
Pushed at: over 2 years ago
Last synced at: 4 months ago
Topics: hooks, react, react-hooks, react-state, safe-callbacks
Funding Links https://patreon.com/sergiodxa, https://github.com/sponsors/sergiodxa, https://paypal.me/sergiodxa