All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.lib.hooks.useLock.d.ts Maven / Gradle / Ivy

The newest version!
/**
 * Locker return cached mark.
 * If set to `true`, will return `true` in a short time even if set `false`.
 * If set to `false` and then set to `true`, will change to `true`.
 * And after time duration, it will back to `null` automatically.
 */
export default function useLock(duration?: number): [() => boolean, (lock: boolean) => void];




© 2015 - 2024 Weber Informatics LLC | Privacy Policy