Skip to content

fix(runtime-vapor): locate an empty slot range's close before its content hydrates - #16073

Merged
edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-hydrate-empty-slot-range
Oct 31, 2026
Merged

edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-hydrate-empty-slot-range

Conversation

@ValentinYoushkevich

Copy link
Copy Markdown
Contributor

Since #16039, hydrating a list component that renders <template v-for="item in list" :key="item.id"><slot :item="item" /></template> throws Cannot set properties of null (setting '$vha') when the last row's slot content is an empty v-for. SSR drops the markers of slot content that renders nothing, so the empty list adopts the slot's close as its anchor and the cursor moves past it. The slot then reads the enclosing list's close off the cursor as its own, and that list can no longer find its range.

When the boundary's server range is empty, its close is now located before the content hydrates, as it was before #16039.

Regression from #16039, shipped in 3.6.0-rc.14.

@coderabbitai

coderabbitai Bot commented Oct 30, 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
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d3f62465-6e77-4713-9ce5-4b7ad5024798

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
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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 Oct 30, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

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

@vue/compiler-dom

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

@vue/compiler-sfc

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

@vue/compiler-ssr

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

@vue/compiler-vapor

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

@vue/reactivity

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/runtime-vapor

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: 083650e

@github-actions

Copy link
Copy Markdown

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 87.4 kB 30.7 kB 27 kB
runtime-dom.global.prod.js 120 kB 45.3 kB 40.6 kB
vue.global.prod.js 181 kB 65.5 kB 58.4 kB

Usages

Name Size Gzip Brotli
createApp (CAPI only) 53.9 kB 21 kB 19.1 kB
createApp 62.9 kB 24.3 kB 22.1 kB
createApp + vaporInteropPlugin 118 kB 43 kB 38.8 kB
createVaporApp 34.2 kB 13.2 kB 12.2 kB
createSSRApp 67.8 kB 26.3 kB 23.9 kB
createVaporSSRApp 41.9 kB 16 kB 14.8 kB
defineCustomElement 69.5 kB 26.3 kB 23.9 kB
defineVaporCustomElement 49.1 kB 18 kB 16.5 kB
overall 78.4 kB 29.8 kB 27 kB

@edison1105 edison1105 added the scope: vapor related to vapor mode label Oct 31, 2026
@edison1105
edison1105 merged commit d57a77f into vuejs:minor Oct 31, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: vapor related to vapor mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants