UNPKG

@supunlakmal/hooks

Version:

A collection of reusable React hooks

9 lines (8 loc) 343 B
import { type DependencyList, type EffectCallback } from 'react'; /** * Effect hook that ignores the first render (not invoked on mount). * * @param effect Effector to run on updates * @param deps Dependencies list, as for `useEffect` hook */ export declare const useUpdateEffect: (effect: EffectCallback, deps?: DependencyList) => void;