UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

13 lines 478 B
/** * useEffectOnceWhen hook * * @description It fires a callback once when a condition is true or become true. * Fires the callback at most one time. * * @param callback The callback to fire * @param when The condition which needs to be true * @see https://react-hooks.org/docs/useEffectOnceWhen */ declare function useEffectOnceWhen(callback: () => void, when?: boolean): void; export { useEffectOnceWhen }; //# sourceMappingURL=useEffectOnceWhen.d.ts.map