Skip to content

fix(runtime-vapor): remove unsafe slot dry runs from vdom interop - #15089

Merged
edison1105 merged 1 commit into
minorfrom
edison/refactor/vaporSlotDryrun
Jul 15, 2026
Merged

edison1105 merged 1 commit into
minorfrom
edison/refactor/vaporSlotDryrun

Conversation

@edison1105

@edison1105 edison1105 commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

revert #14793
Vapor cannot distinguish between slots.default() calls used for VNode inspection and calls used for actual rendering. Eager slot collection can therefore execute user code or claim hydration nodes before rendering.

Summary by CodeRabbit

  • Bug Fixes

    • Improved hydration of slots by ensuring previously hydrated slot content is properly unmounted before new content is inserted.
    • Simplified Vapor and VDOM slot interoperability for more consistent slot rendering and lifecycle behavior.
  • Refactor

    • Removed legacy slot collection and insertion-state handling that could cause inconsistent interop behavior.

Vapor cannot distinguish between slots.default() calls used for VNode
inspection and calls used for actual rendering. Eager slot collection can
therefore execute user code or claim hydration nodes before rendering.
@coderabbitai

coderabbitai Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: removing unsafe slot dry runs from runtime-vapor VDOM interop.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch edison/refactor/vaporSlotDryrun

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

@pkg-pr-new

pkg-pr-new Bot commented Jul 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

pnpm add https://pkg.pr.new/@vue/compiler-core@15089
npm i https://pkg.pr.new/@vue/compiler-core@15089
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/compiler-dom

pnpm add https://pkg.pr.new/@vue/compiler-dom@15089
npm i https://pkg.pr.new/@vue/compiler-dom@15089
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/compiler-sfc

pnpm add https://pkg.pr.new/@vue/compiler-sfc@15089
npm i https://pkg.pr.new/@vue/compiler-sfc@15089
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/compiler-ssr

pnpm add https://pkg.pr.new/@vue/compiler-ssr@15089
npm i https://pkg.pr.new/@vue/compiler-ssr@15089
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/compiler-vapor

pnpm add https://pkg.pr.new/@vue/compiler-vapor@15089
npm i https://pkg.pr.new/@vue/compiler-vapor@15089
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/reactivity

pnpm add https://pkg.pr.new/@vue/reactivity@15089
npm i https://pkg.pr.new/@vue/reactivity@15089
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/runtime-core

pnpm add https://pkg.pr.new/@vue/runtime-core@15089
npm i https://pkg.pr.new/@vue/runtime-core@15089
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/runtime-dom

pnpm add https://pkg.pr.new/@vue/runtime-dom@15089
npm i https://pkg.pr.new/@vue/runtime-dom@15089
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/runtime-vapor

pnpm add https://pkg.pr.new/@vue/runtime-vapor@15089
npm i https://pkg.pr.new/@vue/runtime-vapor@15089
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/server-renderer

pnpm add https://pkg.pr.new/@vue/server-renderer@15089
npm i https://pkg.pr.new/@vue/server-renderer@15089
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/shared

pnpm add https://pkg.pr.new/@vue/shared@15089
npm i https://pkg.pr.new/@vue/shared@15089
yarn add https://pkg.pr.new/@vue/[email protected]

vue

pnpm add https://pkg.pr.new/vue@15089
npm i https://pkg.pr.new/vue@15089
yarn add https://pkg.pr.new/[email protected]

@vue/compat

pnpm add https://pkg.pr.new/@vue/compat@15089
npm i https://pkg.pr.new/@vue/compat@15089
yarn add https://pkg.pr.new/@vue/[email protected]

commit: bc93dc5

@github-actions

Copy link
Copy Markdown

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 86.7 kB 30.3 kB 26.6 kB
runtime-dom.global.prod.js 113 kB 42.7 kB 38.3 kB
vue.global.prod.js 173 kB 62.6 kB 55.8 kB

Usages

Name Size Gzip Brotli
createApp (CAPI only) 51.6 kB 20.2 kB 18.4 kB
createApp 60.7 kB 23.5 kB 21.3 kB
createApp + vaporInteropPlugin 113 kB (-1.04 kB) 41 kB (-385 B) 36.9 kB (-303 B)
createVaporApp 28.6 kB 11.1 kB 10.2 kB
createSSRApp 65.3 kB 25.3 kB 23 kB
createVaporSSRApp 33.7 kB 12.9 kB 11.9 kB
defineCustomElement 67.3 kB 25.5 kB 23.2 kB
defineVaporCustomElement 44.3 kB 16.2 kB 14.8 kB
overall 76 kB 29 kB 26.3 kB

@edison1105
edison1105 marked this pull request as ready for review July 15, 2026 13:30
@edison1105 edison1105 added scope: vapor related to vapor mode interop vdom / vapor interop labels Jul 15, 2026
@edison1105
edison1105 merged commit 3d42cdf into minor Jul 15, 2026
14 checks passed
@edison1105
edison1105 deleted the edison/refactor/vaporSlotDryrun branch July 15, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

interop vdom / vapor interop scope: vapor related to vapor mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant