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 CHANGED
@@ -434,8 +434,8 @@ function invoke(fn, ...args) {
434
434
  return toComp(fn, args);
435
435
  }
436
436
  var useExternalEffect = (effect) => {
437
- return (comp, ...args) => {
438
- return effect.apply(comp, args);
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: (this: Comp, ...args: any[]) => T) => (comp: Comp, ...args: any[]) => T;
48
+ export declare const useExternalEffect: <T>(effect: (ctx: Comp, ...args: any[]) => T) => (ctx: Comp, ...args: any[]) => T;
49
49
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cradova",
3
- "version": "3.12.1",
3
+ "version": "3.12.2",
4
4
  "description": "Build Powerful ⚡ Web Apps with Ease",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",