/** * Simple React hook that return a boolean; * * - `true` at the mount time * - Then always `false` * * @example * import { useIsFirstRender } from '@griddo/core' * * export default function Component() { * const isFirst = useIsFirstRender() * const [data, setData] = useState(0) * * useEffect(() => { * console.log('Normal useEffect', { data }) * }, [data]) * * return ( *
*

Open your console

*

Is first render: {isFirst ? 'yes' : 'no'}

* *
* ) * } * * @see * https://usehooks-ts.com for more hooks * */ declare function useIsFirstRender(): boolean; export { useIsFirstRender };