This repository has been archived by the owner on Apr 18, 2022. It is now read-only.
fix(deps): update dependency use-debounce to v7 #468
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.2.1
->^7.0.1
Release Notes
xnimorz/use-debounce
v7.0.1
Compare Source
debounced
object now is preserved foruse-debounce
between the renders. Thanks to @msharifi99 for reporting.v7.0.0
Compare Source
useDebounce
hook changedisPending
behavior fromasync
reacting to the sync. NowisPending
returnsTrue
as soon as the new value is sent to the hook.v6.0.1
Compare Source
useDebouncedCallback
return type. Closed https://github.com/xnimorz/use-debounce/issues/103 thanks to @VanTanevv6.0.0
Compare Source
breaking change: removed
callback
field, instead of thisuseDebouncedCallback
anduseThrottledCallback
returns a callable function:Old:
New:
It makes easier to understand which cancel \ flush or isPending is called in case you have several debounced functions in your component
breaking change: Now
useDebounce
,useDebouncedCallback
anduseThrottledCallback
hasisPending
method instead ofpending
Old:
New:
get rid of
useCallback
callsimprove internal typing
decrease the amount of functions to initialize each
useDebouncedCallback
callreduce library size:
Whole library: from 946 B to 899 B === 47 B
useDebounce: from 844 to 791 === 53 B
useDebouncedCallback: from 680 to 623 === 57 B
useThrottledCallback: from 736 to 680 === 56 B
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.