fumadocs-core
Version:
The React.js library for building a documentation website
10 lines • 417 B
TypeScript
//#region src/utils/use-on-change.d.ts
/**
* @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;
//#endregion
export { useOnChange };
//# sourceMappingURL=use-on-change.d.ts.map