useFirstRender
First render cycle indicator.
457 B
•Updated on September 3, 2026
Installation
Bash
pnpm dlx shadcn@latest add @spaceui/hooks-lifecycle-use-first-renderUsage
Code
import { useFirstRender } from '@/hooks/use-first-render'
const isFirst = useFirstRender()API Reference
Parameters / Props
None
Return Value
| Return Type | Description |
|---|---|
boolean | True only on initial mount. |