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

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

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function useIsFirstRender
Deprecated
Deprecated
  • Don't use this hook, it's an anti-pattern. Custom hook for determining if the component is rendering for the first time.
import { useIsFirstRender } from "https://deno.land/x/netzo@0.5.70/deps/usehooks-ts.ts";

Examples

const isFirstRender = useIsFirstRender(); // Use isFirstRender to conditionally execute code only on the initial render.

Returns

boolean

A boolean value indicating whether the component is rendering for the first time.