Menu
Back to Open Source

🐙 GitHub Detail

U

sergiodxa/use-safe-callback

By sergiodxa

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

GitHub TypeScript MIT License Updated 30 May 2024

Live Snapshot

Stars

12

🍴

Forks

1

📄

License

MIT License

🧩

Type

TypeScript

📘

About this open-source project

Live information fetched from GitHub.

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

🌿

Default Branch

master

🐞

Open Issues

14

👀

Watchers

12