cradova 3.12.1 → 3.12.2
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 +2 -2
- package/dist/primitives/functions.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -434,8 +434,8 @@ function invoke(fn, ...args) {
|
|
|
434
434
|
return toComp(fn, args);
|
|
435
435
|
}
|
|
436
436
|
var useExternalEffect = (effect) => {
|
|
437
|
-
return (
|
|
438
|
-
return effect
|
|
437
|
+
return (ctx, ...args) => {
|
|
438
|
+
return effect(ctx, ...args);
|
|
439
439
|
};
|
|
440
440
|
};
|
|
441
441
|
|
|
@@ -45,5 +45,5 @@ export declare function invoke(fn: (...args: any[]) => HTMLElement, ...args: any
|
|
|
45
45
|
* Gives you access the component instance
|
|
46
46
|
* @param effect - The function to invoke
|
|
47
47
|
*/
|
|
48
|
-
export declare const useExternalEffect: <T>(effect: (
|
|
48
|
+
export declare const useExternalEffect: <T>(effect: (ctx: Comp, ...args: any[]) => T) => (ctx: Comp, ...args: any[]) => T;
|
|
49
49
|
export {};
|