@mirawision/reactive-hooks
Version:
A comprehensive collection of 50+ React hooks for state management, UI interactions, device APIs, async operations, drag & drop, audio/speech, and more. Full TypeScript support with SSR safety.
8 lines (7 loc) • 393 B
TypeScript
import { EffectCallback, DependencyList } from 'react';
/**
* A version of useEffect that skips running the effect on the first render.
* @param effect Imperative function that can return a cleanup function
* @param deps If present, effect will only activate if the values in the list change
*/
export declare function useUpdateEffect(effect: EffectCallback, deps?: DependencyList): void;