@cabloy/vue-runtime-core 3.5.9 → 3.5.10

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.
@@ -2313,19 +2313,17 @@ function defineAsyncComponent(source) {
2313
2313
  suspensible = true,
2314
2314
  onError: userOnError
2315
2315
  } = source;
2316
- let instanceAttrs = void 0;
2317
2316
  let pendingRequest = null;
2318
2317
  let resolvedComp;
2319
2318
  let retries = 0;
2320
2319
  const retry = () => {
2321
2320
  retries++;
2322
2321
  pendingRequest = null;
2323
- return load(instanceAttrs);
2322
+ return load();
2324
2323
  };
2325
- const load = (attrs) => {
2326
- instanceAttrs = attrs;
2324
+ const load = () => {
2327
2325
  let thisRequest;
2328
- return pendingRequest || (thisRequest = pendingRequest = loader(attrs).catch((err) => {
2326
+ return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => {
2329
2327
  err = err instanceof Error ? err : new Error(String(err));
2330
2328
  if (userOnError) {
2331
2329
  return new Promise((resolve, reject) => {
@@ -2371,7 +2369,7 @@ function defineAsyncComponent(source) {
2371
2369
  if (resolvedComp) {
2372
2370
  doHydrate();
2373
2371
  } else {
2374
- load(instance.attrs).then(() => !instance.isUnmounted && doHydrate());
2372
+ load().then(() => !instance.isUnmounted && doHydrate());
2375
2373
  }
2376
2374
  },
2377
2375
  get __asyncResolved() {
@@ -2393,7 +2391,7 @@ function defineAsyncComponent(source) {
2393
2391
  );
2394
2392
  };
2395
2393
  if (suspensible && instance.suspense || isInSSRComponentSetup) {
2396
- return load(instance.attrs).then((comp) => {
2394
+ return load().then((comp) => {
2397
2395
  return () => createInnerComp(comp, instance);
2398
2396
  }).catch((err) => {
2399
2397
  onError(err);
@@ -2421,7 +2419,7 @@ function defineAsyncComponent(source) {
2421
2419
  }
2422
2420
  }, timeout);
2423
2421
  }
2424
- load(instance.attrs).then(() => {
2422
+ load().then(() => {
2425
2423
  loaded.value = true;
2426
2424
  if (instance.parent && isKeepAlive(instance.parent.vnode)) {
2427
2425
  instance.parent.update();
@@ -1693,19 +1693,17 @@ function defineAsyncComponent(source) {
1693
1693
  suspensible = true,
1694
1694
  onError: userOnError
1695
1695
  } = source;
1696
- let instanceAttrs = void 0;
1697
1696
  let pendingRequest = null;
1698
1697
  let resolvedComp;
1699
1698
  let retries = 0;
1700
1699
  const retry = () => {
1701
1700
  retries++;
1702
1701
  pendingRequest = null;
1703
- return load(instanceAttrs);
1702
+ return load();
1704
1703
  };
1705
- const load = (attrs) => {
1706
- instanceAttrs = attrs;
1704
+ const load = () => {
1707
1705
  let thisRequest;
1708
- return pendingRequest || (thisRequest = pendingRequest = loader(attrs).catch((err) => {
1706
+ return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => {
1709
1707
  err = err instanceof Error ? err : new Error(String(err));
1710
1708
  if (userOnError) {
1711
1709
  return new Promise((resolve, reject) => {
@@ -1743,7 +1741,7 @@ function defineAsyncComponent(source) {
1743
1741
  if (resolvedComp) {
1744
1742
  doHydrate();
1745
1743
  } else {
1746
- load(instance.attrs).then(() => !instance.isUnmounted && doHydrate());
1744
+ load().then(() => !instance.isUnmounted && doHydrate());
1747
1745
  }
1748
1746
  },
1749
1747
  get __asyncResolved() {
@@ -1765,7 +1763,7 @@ function defineAsyncComponent(source) {
1765
1763
  );
1766
1764
  };
1767
1765
  if (suspensible && instance.suspense || isInSSRComponentSetup) {
1768
- return load(instance.attrs).then((comp) => {
1766
+ return load().then((comp) => {
1769
1767
  return () => createInnerComp(comp, instance);
1770
1768
  }).catch((err) => {
1771
1769
  onError(err);
@@ -1793,7 +1791,7 @@ function defineAsyncComponent(source) {
1793
1791
  }
1794
1792
  }, timeout);
1795
1793
  }
1796
- load(instance.attrs).then(() => {
1794
+ load().then(() => {
1797
1795
  loaded.value = true;
1798
1796
  if (instance.parent && isKeepAlive(instance.parent.vnode)) {
1799
1797
  instance.parent.update();
@@ -1507,7 +1507,7 @@ export declare const hydrateOnInteraction: HydrationStrategyFactory<keyof HTMLEl
1507
1507
  type AsyncComponentResolveResult<T = Component> = T | {
1508
1508
  default: T;
1509
1509
  };
1510
- export type AsyncComponentLoader<T = any> = (attrs?: Record<string, unknown>) => Promise<AsyncComponentResolveResult<T>>;
1510
+ export type AsyncComponentLoader<T = any> = () => Promise<AsyncComponentResolveResult<T>>;
1511
1511
  export interface AsyncComponentOptions<T = any> {
1512
1512
  loader: AsyncComponentLoader<T>;
1513
1513
  loadingComponent?: Component;
@@ -2328,19 +2328,17 @@ function defineAsyncComponent(source) {
2328
2328
  suspensible = true,
2329
2329
  onError: userOnError
2330
2330
  } = source;
2331
- let instanceAttrs = void 0;
2332
2331
  let pendingRequest = null;
2333
2332
  let resolvedComp;
2334
2333
  let retries = 0;
2335
2334
  const retry = () => {
2336
2335
  retries++;
2337
2336
  pendingRequest = null;
2338
- return load(instanceAttrs);
2337
+ return load();
2339
2338
  };
2340
- const load = (attrs) => {
2341
- instanceAttrs = attrs;
2339
+ const load = () => {
2342
2340
  let thisRequest;
2343
- return pendingRequest || (thisRequest = pendingRequest = loader(attrs).catch((err) => {
2341
+ return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => {
2344
2342
  err = err instanceof Error ? err : new Error(String(err));
2345
2343
  if (userOnError) {
2346
2344
  return new Promise((resolve, reject) => {
@@ -2386,7 +2384,7 @@ function defineAsyncComponent(source) {
2386
2384
  if (resolvedComp) {
2387
2385
  doHydrate();
2388
2386
  } else {
2389
- load(instance.attrs).then(() => !instance.isUnmounted && doHydrate());
2387
+ load().then(() => !instance.isUnmounted && doHydrate());
2390
2388
  }
2391
2389
  },
2392
2390
  get __asyncResolved() {
@@ -2408,7 +2406,7 @@ function defineAsyncComponent(source) {
2408
2406
  );
2409
2407
  };
2410
2408
  if (suspensible && instance.suspense || isInSSRComponentSetup) {
2411
- return load(instance.attrs).then((comp) => {
2409
+ return load().then((comp) => {
2412
2410
  return () => createInnerComp(comp, instance);
2413
2411
  }).catch((err) => {
2414
2412
  onError(err);
@@ -2436,7 +2434,7 @@ function defineAsyncComponent(source) {
2436
2434
  }
2437
2435
  }, timeout);
2438
2436
  }
2439
- load(instance.attrs).then(() => {
2437
+ load().then(() => {
2440
2438
  loaded.value = true;
2441
2439
  if (instance.parent && isKeepAlive(instance.parent.vnode)) {
2442
2440
  instance.parent.update();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/vue-runtime-core",
3
- "version": "3.5.9",
3
+ "version": "3.5.10",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",
@@ -47,6 +47,6 @@
47
47
  "homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
48
48
  "dependencies": {
49
49
  "@vue/shared": "3.5.6",
50
- "@vue/reactivity": "npm:@cabloy/vue-reactivity@3.5.9"
50
+ "@vue/reactivity": "npm:@cabloy/vue-reactivity@3.5.10"
51
51
  }
52
52
  }