Skip to content

fix(runtime-core): notify vapor of a vdom root replaced by a nested update - #16283

Merged
edison1105 merged 2 commits into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-interop-hoc-root-update
Nov 18, 2026
Merged

edison1105 merged 2 commits into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-interop-hoc-root-update

Conversation

@ValentinYoushkevich

Copy link
Copy Markdown
Contributor

A vapor v-for places new or moved items next to a vdom component whose root is rendered by a nested component, like a lazy root from defineAsyncComponent in monarch-app's AppIcon. Once that root loads, a new item goes to the end (playground). A vapor directive on such a component also stays on the old root.

Vapor learns about the root through the vnode's iu notification, but a nested update reaches that vnode only through updateHOCHostEl or Suspense's setActiveBranch, which update el and nothing else.

I queue iu in both places, the same way the renderer does for the component's own update.

@coderabbitai

coderabbitai Bot commented Nov 16, 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: cfb39395-b043-4ec7-8573-2d223887f3b7

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

@pkg-pr-new

pkg-pr-new Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

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

@vue/compiler-dom

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

@vue/compiler-sfc

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

@vue/compiler-ssr

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

@vue/compiler-vapor

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

@vue/reactivity

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/runtime-vapor

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: 967b480

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 87.5 kB 30.7 kB 27 kB
runtime-dom.global.prod.js 124 kB (+82 B) 46.6 kB (+30 B) 41.8 kB (+20 B)
vue.global.prod.js 185 kB (+82 B) 66.9 kB (+28 B) 59.5 kB (-1 B)

Usages

Name Size Gzip Brotli
createApp (CAPI only) 55.6 kB 21.6 kB 19.7 kB
createApp 64.9 kB 25 kB 22.7 kB
createApp + vaporInteropPlugin 125 kB (+35 B) 45.8 kB (+22 B) 41.1 kB (+15 B)
createVaporApp 36.1 kB 13.9 kB 12.7 kB
createSSRApp 69.8 kB 27 kB 24.5 kB
createVaporSSRApp 43.9 kB 16.7 kB 15.3 kB
defineCustomElement 71.4 kB 27 kB 24.5 kB
defineVaporCustomElement 51.2 kB 18.7 kB 17.2 kB
overall 81.8 kB 31 kB 28 kB

@ValentinYoushkevich
ValentinYoushkevich force-pushed the fix/vapor-interop-hoc-root-update branch from 2cf36cb to c19baea Compare November 17, 2026 05:54
@edison1105
edison1105 force-pushed the fix/vapor-interop-hoc-root-update branch from 18d0aa4 to 967b480 Compare November 18, 2026 02:54
@edison1105 edison1105 added the scope: vapor related to vapor mode label Nov 18, 2026
@edison1105
edison1105 merged commit 19f31d0 into vuejs:minor Nov 18, 2026
11 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