minishouyin/node_modules/rc-picker/es/PickerInput/hooks/useLockEffect.d.ts

6 lines
261 B
TypeScript
Raw Permalink Normal View History

2025-11-12 11:35:57 +08:00
/**
* Trigger `callback` immediately when `condition` is `true`.
* But trigger `callback` in next frame when `condition` is `false`.
*/
export default function useLockEffect(condition: boolean, callback: (next: boolean) => void, delayFrames?: number): void;