You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just went through my initial ticket and realized that it was pretty confusing, sorry for that 🤦♂
It's updated now. I added the steps to reproduce. Basically, you need to click the button once and isPending should stay false (since value and debounced are equal immediately), but it becomes true
Describe the bug
Using
useDebounce
withleading: true
shows that it is pending on the first updateTo Reproduce
In the following example:
the value of
isPending()
is true if there was only one update (so thecountDebounced
is updated immediately)Steps to reproduce
isPending
Expected result:
3. You see
false
Actual result:
3. You see
true
use-debounce version:
10.0.4
The text was updated successfully, but these errors were encountered: