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
-
Updated
Jan 7, 2023 - TypeScript
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
Add a description, image, and links to the safe-callbacks topic page so that developers can more easily learn about it.
To associate your repository with the safe-callbacks topic, visit your repo's landing page and select "manage topics."