UNPKG

@gzued/antd-compiled

Version:

Pre-bundled Ant Design 4.x and related dependencies for @gzued packages

6 lines (5 loc) 292 B
/** * Similar with `useLock`, but this hook will always execute last value. * When set to `true`, it will keep `true` for a short time even if `false` is set. */ export default function useDelayReset(timeout?: number): [boolean, (val: boolean, callback?: () => void) => void, () => void];