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
Is your feature request related to a problem? Please describe.
The issue is when using hooks like useMeasure where a value might change many times per second as someone is resizing.
One solution could be changing useMeasure, but then every hook that needs to be debounced has to take options. Instead, it would be nice to have a useDebouncedValue that can take a quickly-changing value but only reflect the changes after a time. It would be just like useDebounce but a value instead of a function.
Is your feature request related to a problem? Please describe.
The issue is when using hooks like
useMeasure
where a value might change many times per second as someone is resizing.One solution could be changing
useMeasure
, but then every hook that needs to be debounced has to take options. Instead, it would be nice to have auseDebouncedValue
that can take a quickly-changing value but only reflect the changes after a time. It would be just likeuseDebounce
but a value instead of a function.The text was updated successfully, but these errors were encountered: