Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.5.66/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.