fumadocs-core
Version:
The library for building a documentation website in any React.js framework
9 lines (7 loc) • 323 B
TypeScript
/**
* @param value - state to watch
* @param onChange - when the state changed
* @param isUpdated - a function that determines if the state is updated
*/
declare function useOnChange<T>(value: T, onChange: (current: T, previous: T) => void, isUpdated?: (prev: T, current: T) => boolean): void;
export { useOnChange };