reactjrx 4.0.1 → 4.0.3
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/utils/react/useDebounced.d.ts +4 -2
- package/dist/lib/utils/react/useDebounced.test.d.ts +1 -0
- package/dist/lib/utils/react/useUnmount.test.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @param func Function to be debounced
|
|
3
|
-
* @param wait
|
|
2
|
+
* @param func Function to be debounced. The latest `func` runs when the delay ends.
|
|
3
|
+
* @param wait Delay in ms, restarted by each call.
|
|
4
|
+
* @param options.cancelOnUnmount Cancels a pending call when the component
|
|
5
|
+
* unmounts. Defaults to `false`, so a pending call, such as a save, still runs.
|
|
4
6
|
* @returns the debounced callback function
|
|
5
7
|
*/
|
|
6
8
|
export declare const useDebounced: <T>(func: ((arg: T) => void) | (() => void), wait: number, options?: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|