@cabloy/vue-runtime-core 3.4.39 → 3.4.40

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.
@@ -4098,12 +4098,18 @@ Server rendered element contains fewer child nodes than client vdom.`
4098
4098
  };
4099
4099
  return [hydrate, hydrateNode];
4100
4100
  }
4101
+ function _getValidZova(instance) {
4102
+ while (instance) {
4103
+ if (instance.zova) return instance.zova;
4104
+ instance = instance.parent;
4105
+ }
4106
+ }
4101
4107
  function propHasMismatch(el, key, clientValue, vnode, instance) {
4102
4108
  let mismatchType;
4103
4109
  let mismatchKey;
4104
4110
  let actual;
4105
4111
  let expected;
4106
- const zova = instance && instance.ctx._.zova;
4112
+ const zova = _getValidZova(instance);
4107
4113
  if (zova) {
4108
4114
  clientValue = zova.meta.ssr._hydratePropHasMismatch(
4109
4115
  el,
@@ -4948,7 +4954,7 @@ function baseCreateRenderer(options, createHydrationFns) {
4948
4954
  () => !instance.isUnmounted && hydrateSubTree()
4949
4955
  );
4950
4956
  } else {
4951
- const zova = instance.ctx._.zova;
4957
+ const zova = instance.zova;
4952
4958
  if (zova) {
4953
4959
  zova.meta.ssr._hydratingInc();
4954
4960
  zova.meta.state.inited.wait().then(() => {
@@ -5004,7 +5010,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5004
5010
  initialVNode = container = anchor = null;
5005
5011
  } else {
5006
5012
  let { next, bu, u, parent, vnode } = instance;
5007
- const zova = instance.ctx._.zova;
5013
+ const zova = instance.zova;
5008
5014
  if (zova && zova.meta.ssr.isRuntimeSsrPreHydration) {
5009
5015
  return;
5010
5016
  }
@@ -3730,7 +3730,7 @@ function baseCreateRenderer(options, createHydrationFns) {
3730
3730
  () => !instance.isUnmounted && hydrateSubTree()
3731
3731
  );
3732
3732
  } else {
3733
- const zova = instance.ctx._.zova;
3733
+ const zova = instance.zova;
3734
3734
  if (zova) {
3735
3735
  zova.meta.ssr._hydratingInc();
3736
3736
  zova.meta.state.inited.wait().then(() => {
@@ -3771,7 +3771,7 @@ function baseCreateRenderer(options, createHydrationFns) {
3771
3771
  initialVNode = container = anchor = null;
3772
3772
  } else {
3773
3773
  let { next, bu, u, parent, vnode } = instance;
3774
- const zova = instance.ctx._.zova;
3774
+ const zova = instance.zova;
3775
3775
  if (zova && zova.meta.ssr.isRuntimeSsrPreHydration) {
3776
3776
  return;
3777
3777
  }
@@ -4115,12 +4115,18 @@ Server rendered element contains fewer child nodes than client vdom.`
4115
4115
  };
4116
4116
  return [hydrate, hydrateNode];
4117
4117
  }
4118
+ function _getValidZova(instance) {
4119
+ while (instance) {
4120
+ if (instance.zova) return instance.zova;
4121
+ instance = instance.parent;
4122
+ }
4123
+ }
4118
4124
  function propHasMismatch(el, key, clientValue, vnode, instance) {
4119
4125
  let mismatchType;
4120
4126
  let mismatchKey;
4121
4127
  let actual;
4122
4128
  let expected;
4123
- const zova = instance && instance.ctx._.zova;
4129
+ const zova = _getValidZova(instance);
4124
4130
  if (zova) {
4125
4131
  clientValue = zova.meta.ssr._hydratePropHasMismatch(
4126
4132
  el,
@@ -5003,7 +5009,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5003
5009
  () => !instance.isUnmounted && hydrateSubTree()
5004
5010
  );
5005
5011
  } else {
5006
- const zova = instance.ctx._.zova;
5012
+ const zova = instance.zova;
5007
5013
  if (zova) {
5008
5014
  zova.meta.ssr._hydratingInc();
5009
5015
  zova.meta.state.inited.wait().then(() => {
@@ -5059,7 +5065,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5059
5065
  initialVNode = container = anchor = null;
5060
5066
  } else {
5061
5067
  let { next, bu, u, parent, vnode } = instance;
5062
- const zova = instance.ctx._.zova;
5068
+ const zova = instance.zova;
5063
5069
  if (zova && zova.meta.ssr.isRuntimeSsrPreHydration) {
5064
5070
  return;
5065
5071
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/vue-runtime-core",
3
- "version": "3.4.39",
3
+ "version": "3.4.40",
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.4.37",
50
- "@vue/reactivity": "npm:@cabloy/vue-reactivity@3.4.39"
50
+ "@vue/reactivity": "npm:@cabloy/vue-reactivity@3.4.40"
51
51
  }
52
52
  }