3.2.0
useDebounce
hascallPending
method. See https://github.com/xnimorz/use-debounce/blob/master/test/useDebounce.test.tsx#L276-L302 unit test for examples.
3.1.0
- Now package includes only nessesary files. Thanks to @vkrol
- Added optional
equalityFn
tooptions
object foruseDebounce
so that you can provide a custom equality function to the hook. Thanks to @seruco
3.0.1
- Added missed
esm
directory (thanks for reporting @FredyC) - Fixed import name (thanks for PR @neoromantic)
- Updated
eslint-utils
lib version due to security issue
3.0.0
- breaking change now,
cache
file renamed touseDebounce
andcallback
file renamed touseDebouncedCallback
.
If you used to import file by its path:
import useDebounce from 'use-debounce/lib/cache';
import useDebouncedCallback from 'use-debounce/lib/callback';
it should be renamed to
import useDebounce from 'use-debounce/lib/useDebounce';
import useDebouncedCallback from 'use-debounce/lib/useDebouncedCallback';
It helps us to keep more descriptive names. Thanks to @vkrol
#33
-
breaking change now,
useDebouncedCallback
executes the latest callback, which was sent to the hook (thanks for the report @alexandr-bbm #35)
eca14cc