@cabloy/vue-runtime-core 3.5.10 → 3.5.11

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.
@@ -2296,6 +2296,12 @@ function forEachElement(node, cb) {
2296
2296
  }
2297
2297
 
2298
2298
  const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
2299
+ function _getValidZova(instance) {
2300
+ while (instance) {
2301
+ if (instance.zova) return instance.zova;
2302
+ instance = instance.parent;
2303
+ }
2304
+ }
2299
2305
  /*! #__NO_SIDE_EFFECTS__ */
2300
2306
  // @__NO_SIDE_EFFECTS__
2301
2307
  function defineAsyncComponent(source) {
@@ -2369,7 +2375,12 @@ function defineAsyncComponent(source) {
2369
2375
  if (resolvedComp) {
2370
2376
  doHydrate();
2371
2377
  } else {
2372
- load().then(() => !instance.isUnmounted && doHydrate());
2378
+ const zova = _getValidZova(instance);
2379
+ zova.meta.ssr._hydratingInc();
2380
+ load().then(() => {
2381
+ !instance.isUnmounted && doHydrate();
2382
+ zova.meta.ssr._hydratingDec();
2383
+ });
2373
2384
  }
2374
2385
  },
2375
2386
  get __asyncResolved() {
@@ -1676,6 +1676,12 @@ function forEachElement(node, cb) {
1676
1676
  }
1677
1677
 
1678
1678
  const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
1679
+ function _getValidZova(instance) {
1680
+ while (instance) {
1681
+ if (instance.zova) return instance.zova;
1682
+ instance = instance.parent;
1683
+ }
1684
+ }
1679
1685
  /*! #__NO_SIDE_EFFECTS__ */
1680
1686
  // @__NO_SIDE_EFFECTS__
1681
1687
  function defineAsyncComponent(source) {
@@ -1741,7 +1747,12 @@ function defineAsyncComponent(source) {
1741
1747
  if (resolvedComp) {
1742
1748
  doHydrate();
1743
1749
  } else {
1744
- load().then(() => !instance.isUnmounted && doHydrate());
1750
+ const zova = _getValidZova(instance);
1751
+ zova.meta.ssr._hydratingInc();
1752
+ load().then(() => {
1753
+ !instance.isUnmounted && doHydrate();
1754
+ zova.meta.ssr._hydratingDec();
1755
+ });
1745
1756
  }
1746
1757
  },
1747
1758
  get __asyncResolved() {
@@ -2311,6 +2311,12 @@ function forEachElement(node, cb) {
2311
2311
  }
2312
2312
 
2313
2313
  const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
2314
+ function _getValidZova(instance) {
2315
+ while (instance) {
2316
+ if (instance.zova) return instance.zova;
2317
+ instance = instance.parent;
2318
+ }
2319
+ }
2314
2320
  /*! #__NO_SIDE_EFFECTS__ */
2315
2321
  // @__NO_SIDE_EFFECTS__
2316
2322
  function defineAsyncComponent(source) {
@@ -2384,7 +2390,12 @@ function defineAsyncComponent(source) {
2384
2390
  if (resolvedComp) {
2385
2391
  doHydrate();
2386
2392
  } else {
2387
- load().then(() => !instance.isUnmounted && doHydrate());
2393
+ const zova = _getValidZova(instance);
2394
+ zova.meta.ssr._hydratingInc();
2395
+ load().then(() => {
2396
+ !instance.isUnmounted && doHydrate();
2397
+ zova.meta.ssr._hydratingDec();
2398
+ });
2388
2399
  }
2389
2400
  },
2390
2401
  get __asyncResolved() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/vue-runtime-core",
3
- "version": "3.5.10",
3
+ "version": "3.5.11",
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.10"
50
+ "@vue/reactivity": "npm:@cabloy/vue-reactivity@3.5.11"
51
51
  }
52
52
  }