import { useUnmount } from "https://deno.land/x/netzo@0.5.63/deps/usehooks-ts.ts";
Hook that runs a cleanup function when the component is unmounted.
Examples
// Usage in a functional component
useUnmount(() => {
// Cleanup logic here
});
// Usage in a functional component useUnmount(() => { // Cleanup logic here });