packageDocumentation module import { useEffect , useRef } from "react" ; public export function useEffectSkipFirst ( callback , deps ? ) { const skipFirst = useRef ( true ) ; useEffect ( ( ) => { if ( skipFirst . current ) { skipFirst . current = false ; return ; } return callback ( ) ; } , deps ) ; }