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.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.js +2 -4
- package/dist/types/index.js.map +1 -1
- package/package.json +12 -31
- package/src/NavScroll/useNavScroll.ts +3 -4
package/dist/esm/index.js
CHANGED
|
@@ -3310,7 +3310,6 @@ const useSizeDetector = ({
|
|
|
3310
3310
|
* Code: https://github.com/dej611/react-use-navscroll
|
|
3311
3311
|
*/
|
|
3312
3312
|
const hasWindow = typeof window !== 'undefined';
|
|
3313
|
-
const REGISTER_DELAY = 50;
|
|
3314
3313
|
function resolveHierarchyIds(id, lookup) {
|
|
3315
3314
|
const newActiveIds = [id];
|
|
3316
3315
|
let lastId = newActiveIds[0];
|
|
@@ -3412,9 +3411,8 @@ function useNavScroll(args = {}) {
|
|
|
3412
3411
|
observer.disconnect();
|
|
3413
3412
|
};
|
|
3414
3413
|
}, [activeIds, updateActiveId, els, elsLookup, onChange, activeLookups, activeId, observerOptions, isHorizontal, root, forceRecompute]);
|
|
3415
|
-
const refresh = useCallback(
|
|
3416
|
-
|
|
3417
|
-
}, REGISTER_DELAY), [counter]);
|
|
3414
|
+
const refresh = useCallback(() => {
|
|
3415
|
+
}, [counter]);
|
|
3418
3416
|
const register = useCallback((id, options = {}) => {
|
|
3419
3417
|
if (!hasWindow) {
|
|
3420
3418
|
return {
|