const onClick = useExclusive(async () => {
console.log('useExclusive start');
await delay(1000);
console.log('useExclusive end');
});
react hooks use exclusive callback
const onClick = useExclusive(async () => {
console.log('useExclusive start');
await delay(1000);
console.log('useExclusive end');
});
react hooks use exclusive callback
https://codesandbox.io/s/useexclusive-erwhw
MIT License