aefis-core-ui 2.4.0 → 2.4.1
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/dist/index.modern.js +2 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -24363,10 +24363,10 @@ const useDebounceCallback = (fnToDebounce, durationInMs = 200, debounceOptions =
|
|
|
24363
24363
|
if (typeof fnToDebounce !== "function") {
|
|
24364
24364
|
throw new TypeError("fnToDebounce should be a function");
|
|
24365
24365
|
}
|
|
24366
|
-
const fn = useCallback(debounce(fnToDebounce, durationInMs), [fnToDebounce, durationInMs]);
|
|
24366
|
+
const fn = useCallback(debounce(fnToDebounce, durationInMs, debounceOptions), [fnToDebounce, durationInMs]);
|
|
24367
24367
|
useEffect(() => () => {
|
|
24368
24368
|
fn == null ? void 0 : fn.cancel == null ? void 0 : fn.cancel();
|
|
24369
|
-
});
|
|
24369
|
+
}, []);
|
|
24370
24370
|
return fn;
|
|
24371
24371
|
};
|
|
24372
24372
|
|