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>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.66/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.