UNPKG

@brightlayer-ui/react-auth-workflow

Version:

Re-usable workflow components for Authentication and Registration within Eaton applications.

14 lines (13 loc) 296 B
/** * @packageDocumentation * @module Hooks * @internal */ import { useRef, useEffect } from 'react'; export const useIsFirstRender = () => { const isFirstRender = useRef(true); useEffect(() => { isFirstRender.current = false; }, []); return isFirstRender.current; };