Search...
A React Hook that helps to run a callback when the component unmounts.
See API for more details.
Click links below to view source on GitHub.
useUnmount(callback)
A function that will be called when the component unmounts, can be async.
function