design-react-kit 5.0.3 → 5.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3316,7 +3316,6 @@ const useSizeDetector = ({
3316
3316
  * Code: https://github.com/dej611/react-use-navscroll
3317
3317
  */
3318
3318
  const hasWindow = typeof window !== 'undefined';
3319
- const REGISTER_DELAY = 50;
3320
3319
  function resolveHierarchyIds(id, lookup) {
3321
3320
  const newActiveIds = [id];
3322
3321
  let lastId = newActiveIds[0];
@@ -3418,9 +3417,8 @@ function useNavScroll(args = {}) {
3418
3417
  observer.disconnect();
3419
3418
  };
3420
3419
  }, [activeIds, updateActiveId, els, elsLookup, onChange, activeLookups, activeId, observerOptions, isHorizontal, root, forceRecompute]);
3421
- const refresh = React.useCallback(debounce(() => {
3422
- setCounter(counter + 1);
3423
- }, REGISTER_DELAY), [counter]);
3420
+ const refresh = React.useCallback(() => {
3421
+ }, [counter]);
3424
3422
  const register = React.useCallback((id, options = {}) => {
3425
3423
  if (!hasWindow) {
3426
3424
  return {