import * as React from "react" ; /**
 * A `React.useEffect` that will not run on the first render.
 */ export function useUpdateEffect ( effect , deps ? ) { const mounted = React . useRef ( false ) ; React . useEffect ( ( ) => { if ( mounted . current ) { return effect ( ) ; } mounted . current = true ; return undefined ; } , deps ) ; }