-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"leading: true" not working for v7 #124
Comments
Hey, thank you for reporting the issue. |
Labelling it as a good for new contributors, who are looking for possibilities to start with open source |
Hey @mntnoe Now it works with https://codesandbox.io/s/cache-example-with-areas-and-leading-param-119r3i If you get any issues during the update from 7.x.x => 8.x.x here is a guidance: https://github.com/xnimorz/use-debounce/blob/master/CHANGELOG.md#800 |
I'm closing this issue as it should be resolved for now. Please, feel free to re-open it if you still get any issues with it |
Thank you for looking into this. When using
I'll try to investigate what happens when I get time. |
@mntnoe interesting, thanks, I'll try to reproduce it too. |
I cannot repro it now. If you have an example, please share it. I'll close the issue for now |
I see this as well |
Describe the bug
For the versions 7.0.0 and 7.0.1, setting
{ leading: true }
does not trigger an immediate change inuseDebounce
. It works in 6.0.1 and below.To Reproduce
[email protected]
. Add the option{ leading: true }
and observe that the debounced value is updated immedately for the first change.{ leading: true }
is not given.Expected behavior
Setting
{ leading: true }
should trigger immediately for the first change, and subsequently trigger immediately on changes after thewait
timeout has expired.use-debounce version:
7.0.0 and 7.0.1
The text was updated successfully, but these errors were encountered: