Appearance
useFirstMountState
检查当前的组件是否为第一次渲染的 Hook。
Demo
Usage
import { useFirstMountState } from 'v3-use'
const isFirst = useFirstMountState()
import { useFirstMountState } from 'v3-use'
const isFirst = useFirstMountState()
Reference
Type Declarations
export declare function useFirstMountState(): Ref<boolean>
export declare function useFirstMountState(): Ref<boolean>