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
{{ message }}
Repository navigation
Stop using useDebounce and useThrottle inside other hooks #559
A deprecated hook should not be what the rest of the family is built on. It also means these six cannot be cleaned up when the deprecated hooks are removed in a later major.
Make the six hooks use the debounce and throttle functions directly instead of the hooks. Each one then needs to keep the function stable across renders and cancel pending calls on unmount and when the timing options change, which useDebounce and useThrottle do for them today. If that logic ends up repeated, share it in an internal hook rather than a public one.
No public signature or behavior changes. Existing tests should pass as they are.
Resolved by #565 👍 The six hooks now share the debounce and throttle logic through internal hooks instead of the public useDebounce and useThrottle.
Closing this manually, since #565 was merged into v1-base and GitHub only closes issues automatically on merges into the default branch. Where the internal hooks should live will be followed up in a separate issue. Thanks @Antoliny0919!
Activity
mnxmnz commentedon Oct 28, 2026
Resolved by #565 👍 The six hooks now share the debounce and throttle logic through internal hooks instead of the public
useDebounceanduseThrottle.Closing this manually, since #565 was merged into
v1-baseand GitHub only closes issues automatically on merges into the default branch. Where the internal hooks should live will be followed up in a separate issue. Thanks @Antoliny0919!