Skip to content

fix(runtime-vapor): hand off each in-out leave to its own entering branch - #15665

Merged
edison1105 merged 3 commits into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-in-out-rapid-key-leave
Sep 29, 2026
Merged

edison1105 merged 3 commits into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-in-out-rapid-key-leave

Conversation

@ValentinYoushkevich

Copy link
Copy Markdown
Contributor

With <Transition mode="in-out"> and a :key, changing the key again before the enter finishes leaves the first element in the DOM for good. A status cover hits this when the status goes loading → unknown → normal quickly, e.g. site-status. Playground

In in-out the leave is handed to the entering child through delayedLeave on the transition hooks, but those are the same hooks the next branch copies from, so a second change handed on the wrong leave and dropped the first one. Each branch now gets its own copy, like vdomInterop already does for slot fallbacks, and a settled flag replaces the identity checks from #14540. This also stops the double leave on rapid v-if/v-else toggles (#14539).

@coderabbitai

coderabbitai Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 4f26479d-4939-43b2-a5c0-908bdf05113c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

pnpm add https://pkg.pr.new/@vue/compiler-core@15665
npm i https://pkg.pr.new/@vue/compiler-core@15665
yarn add https://pkg.pr.new/@vue/compiler-core@15665.tgz

@vue/compiler-dom

pnpm add https://pkg.pr.new/@vue/compiler-dom@15665
npm i https://pkg.pr.new/@vue/compiler-dom@15665
yarn add https://pkg.pr.new/@vue/compiler-dom@15665.tgz

@vue/compiler-sfc

pnpm add https://pkg.pr.new/@vue/compiler-sfc@15665
npm i https://pkg.pr.new/@vue/compiler-sfc@15665
yarn add https://pkg.pr.new/@vue/compiler-sfc@15665.tgz

@vue/compiler-ssr

pnpm add https://pkg.pr.new/@vue/compiler-ssr@15665
npm i https://pkg.pr.new/@vue/compiler-ssr@15665
yarn add https://pkg.pr.new/@vue/compiler-ssr@15665.tgz

@vue/compiler-vapor

pnpm add https://pkg.pr.new/@vue/compiler-vapor@15665
npm i https://pkg.pr.new/@vue/compiler-vapor@15665
yarn add https://pkg.pr.new/@vue/compiler-vapor@15665.tgz

@vue/reactivity

pnpm add https://pkg.pr.new/@vue/reactivity@15665
npm i https://pkg.pr.new/@vue/reactivity@15665
yarn add https://pkg.pr.new/@vue/reactivity@15665.tgz

@vue/runtime-core

pnpm add https://pkg.pr.new/@vue/runtime-core@15665
npm i https://pkg.pr.new/@vue/runtime-core@15665
yarn add https://pkg.pr.new/@vue/runtime-core@15665.tgz

@vue/runtime-dom

pnpm add https://pkg.pr.new/@vue/runtime-dom@15665
npm i https://pkg.pr.new/@vue/runtime-dom@15665
yarn add https://pkg.pr.new/@vue/runtime-dom@15665.tgz

@vue/runtime-vapor

pnpm add https://pkg.pr.new/@vue/runtime-vapor@15665
npm i https://pkg.pr.new/@vue/runtime-vapor@15665
yarn add https://pkg.pr.new/@vue/runtime-vapor@15665.tgz

@vue/server-renderer

pnpm add https://pkg.pr.new/@vue/server-renderer@15665
npm i https://pkg.pr.new/@vue/server-renderer@15665
yarn add https://pkg.pr.new/@vue/server-renderer@15665.tgz

@vue/shared

pnpm add https://pkg.pr.new/@vue/shared@15665
npm i https://pkg.pr.new/@vue/shared@15665
yarn add https://pkg.pr.new/@vue/shared@15665.tgz

vue

pnpm add https://pkg.pr.new/vue@15665
npm i https://pkg.pr.new/vue@15665
yarn add https://pkg.pr.new/vue@15665.tgz

@vue/compat

pnpm add https://pkg.pr.new/@vue/compat@15665
npm i https://pkg.pr.new/@vue/compat@15665
yarn add https://pkg.pr.new/@vue/compat@15665.tgz

commit: 2ab423d

@github-actions

github-actions Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 87.2 kB 30.6 kB 26.9 kB
runtime-dom.global.prod.js 116 kB 43.9 kB 39.2 kB
vue.global.prod.js 176 kB 64 kB 57 kB

Usages

Name Size Gzip Brotli
createApp (CAPI only) 53.1 kB 20.7 kB 18.9 kB
createApp 61.9 kB 23.9 kB 21.7 kB
createApp + vaporInteropPlugin 126 kB (+117 B) 45.3 kB (+47 B) 40.7 kB (-52 B)
createVaporApp 31.6 kB 12.2 kB 11.2 kB
createSSRApp 66.9 kB 25.9 kB 23.6 kB
createVaporSSRApp 38.2 kB 14.5 kB 13.3 kB
defineCustomElement 68.4 kB 25.9 kB 23.5 kB
defineVaporCustomElement 47 kB 17.1 kB 15.7 kB
overall 77.4 kB 29.4 kB 26.7 kB

@edison1105
edison1105 merged commit 7372680 into vuejs:minor Sep 29, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants