import { useEffect } from 'react' ; import type { EffectCallback } from 'react' ; /**
 * useMountEffect hook
 *
 * Run an effect only once (on initial mount).
 * Pass an empty array for the dependency list to ensure effect is only fired once.
 */ const useMountEffect = ( effect ) : void => { useEffect ( effect , [ ] ) ; } ; export default useMountEffect ;