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

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

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function useEffectOnce
Deprecated
Deprecated
  • Don't use this hook, it'll be removed in the next major version. A hook that runs an effect only once (at mount).
import { useEffectOnce } from "https://deno.land/x/netzo@0.4.72/deps/usehooks-ts.ts";

Examples

useEffectOnce(() => { console.log('Hello World'); });

Parameters

effect: EffectCallback
  • The effect to run.