Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/usehooks-ts.ts>useUnmount

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function useUnmount
import { useUnmount } from "https://deno.land/x/netzo@0.4.72/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 });

Parameters

func: () => void
  • The cleanup function to be executed on unmount.