rooks
Version:
Essential React custom hooks ⚓ to super charge your components!
14 lines • 543 B
TypeScript
/**
* useDidUpdate hook
*
* Fires a callback on component update
* Can take in a list of conditions to fire callback when one of the
* conditions changes
*
* @param {Function} callback The callback to be called on update
* @param {Array} conditions The list of variables which trigger update when they are changed
* @see https://react-hooks.org/docs/useDidUpdate
*/
declare function useDidUpdate(callback: () => void, conditions?: unknown[]): void;
export { useDidUpdate };
//# sourceMappingURL=useDidUpdate.d.ts.map