vue 3.5.28 → 3.5.29

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 v3.5.28
2
+ * vue v3.5.29
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vue v3.5.28
2
+ * vue v3.5.29
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -3809,6 +3809,7 @@ var Vue = (function (exports) {
3809
3809
  callHook(hook, [el]);
3810
3810
  },
3811
3811
  enter(el) {
3812
+ if (leavingVNodesCache[key] === vnode) return;
3812
3813
  let hook = onEnter;
3813
3814
  let afterHook = onAfterEnter;
3814
3815
  let cancelHook = onEnterCancelled;
@@ -5902,13 +5903,24 @@ If this is a native custom element, make sure to exclude it from component resol
5902
5903
  }
5903
5904
  let awaitable = getAwaitable();
5904
5905
  unsetCurrentInstance();
5906
+ const cleanup = () => {
5907
+ if (getCurrentInstance() !== ctx) ctx.scope.off();
5908
+ unsetCurrentInstance();
5909
+ };
5905
5910
  if (isPromise(awaitable)) {
5906
5911
  awaitable = awaitable.catch((e) => {
5907
5912
  setCurrentInstance(ctx);
5913
+ Promise.resolve().then(() => Promise.resolve().then(cleanup));
5908
5914
  throw e;
5909
5915
  });
5910
5916
  }
5911
- return [awaitable, () => setCurrentInstance(ctx)];
5917
+ return [
5918
+ awaitable,
5919
+ () => {
5920
+ setCurrentInstance(ctx);
5921
+ Promise.resolve().then(cleanup);
5922
+ }
5923
+ ];
5912
5924
  }
5913
5925
 
5914
5926
  function createDuplicateChecker() {
@@ -10745,7 +10757,7 @@ Component that was made reactive: `,
10745
10757
  return true;
10746
10758
  }
10747
10759
 
10748
- const version = "3.5.28";
10760
+ const version = "3.5.29";
10749
10761
  const warn = warn$1 ;
10750
10762
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10751
10763
  const devtools = devtools$1 ;