reykit 1.0.246 → 1.0.247
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.js +3 -3
- package/dist/src/lib/react.d.ts +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27554,12 +27554,12 @@ function U0() {
|
|
|
27554
27554
|
function C0(a, i) {
|
|
27555
27555
|
return U0() ? a : i;
|
|
27556
27556
|
}
|
|
27557
|
-
function lD(a,
|
|
27557
|
+
function lD(a, i = [], u = []) {
|
|
27558
27558
|
j0(
|
|
27559
27559
|
() => {
|
|
27560
|
-
a(...
|
|
27560
|
+
a(...u);
|
|
27561
27561
|
},
|
|
27562
|
-
|
|
27562
|
+
i
|
|
27563
27563
|
);
|
|
27564
27564
|
}
|
|
27565
27565
|
const M6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
package/dist/src/lib/react.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, DependencyList } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Render react note.
|
|
4
4
|
* Note: `react` and `react-dom` packages version must be `19.2.4`.
|
|
@@ -59,9 +59,10 @@ export declare function useIsMobile(): boolean;
|
|
|
59
59
|
*/
|
|
60
60
|
export declare function useValueByMobile<Value, MobileValue>(mobileValue: MobileValue, value: Value): Value | MobileValue;
|
|
61
61
|
/**
|
|
62
|
-
* Execute
|
|
62
|
+
* Execute after rendering or effecting.
|
|
63
63
|
*
|
|
64
64
|
* @param func - Execute function.
|
|
65
|
+
* @param deps - Effect dependency list.
|
|
65
66
|
* @param args - Execute arguments.
|
|
66
67
|
*/
|
|
67
|
-
export declare function useExec<T extends any>(func: (...args: T
|
|
68
|
+
export declare function useExec<T extends any[]>(func: (...args: T) => any | Promise<any>, deps?: DependencyList, args?: T): void;
|