- breaking change
useDebounce
changed its build system to microbundle. For now we have several entries:
index.js
is for commonJS approach
index.modern.js
for esnext module system
index.umd.js
for UMD.
All the files are in dist
folder.
If you have any paths which have esm
or lib
, please, replace them to dist
:
Before:
import useDebounceCallback from 'use-debounce/lib/useDebounceCallback'
After:
import { useDebounceCallback } from 'use-debounce';
- Fixed issue with incorrect VSCode autocomplete #131 Thanks to @c-ehrlich for reporting
- Fixed
useDebounce
behaviour with react-devtools tab when devtools have a component withuseDebounce
oruseDebounceCallback
opened. #129 Thanks to @alexniarchos for reporting - Fixed issue with
leading: true
#124 Thanks to @mntnoe for reporting