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
The current rising edge (immediate in the below diagram) will potentially lose the last few debounced listener calls, for a duration up to the set debounce time.
This is contrary to the current falling impl. (queuedIdle in the below diagram), which will ensure the very last time the debounced function is called, that call will be passed along to the listener to ensure the last call contains the newest data. But it may never be called if the events are too frequent.
To fix both these problems, a third edge type (queuedImmediate) should be introduced.
In the end it could look something like this:
The text was updated successfully, but these errors were encountered:
The current
rising
edge (immediate
in the below diagram) will potentially lose the last few debounced listener calls, for a duration up to the set debounce time.This is contrary to the current
falling
impl. (queuedIdle
in the below diagram), which will ensure the very last time the debounced function is called, that call will be passed along to the listener to ensure the last call contains the newest data. But it may never be called if the events are too frequent.To fix both these problems, a third edge type (
queuedImmediate
) should be introduced.In the end it could look something like this:
The text was updated successfully, but these errors were encountered: