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
Deprecate useDebounce and useThrottle in favor of the Callback hooks #537
useDebounce and useThrottle return a wrapped function, but the names do not say so, and other hook libraries use the same names for hooks that return a debounced or throttled value. useDebouncedCallback and useThrottledCallback cannot replace them yet, because they forward a single value and have no cancel.
Let useDebouncedCallback and useThrottledCallback wrap a function with any arguments and return it with cancel.
Mark useDebounce and useThrottle as deprecated and point their docs to the Callback hooks.
useImpressionRef relies on the Callback hook skipping a repeated call with the same value. Keep that behavior, either in the Callback hook or in useImpressionRef.
I’m a little worried I might be claiming too many issues, but since I’ve already offered to work on the dependencies, it probably makes sense for me to take this one too. 🥲
Activity
Antoliny0919 commentedon Sep 30, 2026
I’m a little worried I might be claiming too many issues, but since I’ve already offered to work on the dependencies, it probably makes sense for me to take this one too. 🥲
Antoliny0919 commentedon Oct 6, 2026
https://github.com/toss/react-simplikit/pull/545/changes -> I'll get started once this change is in!