vue 2.7.16-beta.1 → 2.7.16-beta.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vue.js v2.7.16-beta.1
2
+ * Vue.js v2.7.16-beta.2
3
3
  * (c) 2014-2023 Evan You
4
4
  * Released under the MIT License.
5
5
  */
@@ -2453,11 +2453,10 @@ function renderMixin(Vue) {
2453
2453
  // to the data on the placeholder node.
2454
2454
  vm.$vnode = _parentVnode;
2455
2455
  // render self
2456
+ const prevInst = currentInstance;
2457
+ const prevRenderInst = currentRenderingInstance;
2456
2458
  let vnode;
2457
2459
  try {
2458
- // There's no need to maintain a stack because all render fns are called
2459
- // separately from one another. Nested component's render fns are called
2460
- // when parent component is patched.
2461
2460
  setCurrentInstance(vm);
2462
2461
  currentRenderingInstance = vm;
2463
2462
  vnode = render.call(vm._renderProxy, vm.$createElement);
@@ -2481,8 +2480,8 @@ function renderMixin(Vue) {
2481
2480
  }
2482
2481
  }
2483
2482
  finally {
2484
- currentRenderingInstance = null;
2485
- setCurrentInstance();
2483
+ currentRenderingInstance = prevRenderInst;
2484
+ setCurrentInstance(prevInst);
2486
2485
  }
2487
2486
  // if the returned array contains only a single node, allow it
2488
2487
  if (isArray(vnode) && vnode.length === 1) {
@@ -3950,7 +3949,7 @@ function onErrorCaptured(hook, target = currentInstance) {
3950
3949
  /**
3951
3950
  * Note: also update dist/vue.runtime.mjs when adding new exports to this file.
3952
3951
  */
3953
- const version = '2.7.16-beta.1';
3952
+ const version = '2.7.16-beta.2';
3954
3953
  /**
3955
3954
  * @internal type is manually declared in <root>/types/v3-define-component.d.ts
3956
3955
  */