Skip to content

fix(runtime-vapor): hand transition hooks to a vdom child after hydration - #16552

Merged
edison1105 merged 2 commits into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-vdom-child-transition-hooks
Dec 4, 2026
Merged

edison1105 merged 2 commits into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-vdom-child-transition-hooks

Conversation

@ValentinYoushkevich

Copy link
Copy Markdown
Contributor

When a Vapor app hydrates a VDOM component that shows and hides its own root under <Transition>, toggling it runs with no transition: no hooks, no classes. VDOM animates it. radix-vue's CheckboxIndicator is one, e.g. in this Checkbox. Here's a playground (SSR is on; remove vapor to compare with VDOM).

Vapor <Transition> gives its hooks to the child's vnode only when it inserts it, which hydration skips, so the vnode never gets them; on the client a later hooks refresh misses the mounted vnode the same way. I now pass the hooks to the vnode whenever they're applied, deferred until hydration is done. A non-element root under <TransitionGroup> now gets the same dev warning as in CSR and VDOM.

@coderabbitai

coderabbitai Bot commented Dec 3, 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: 57437721-7758-4b7c-b1d0-81998df537dd

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 Dec 3, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

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

@vue/compiler-dom

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

@vue/compiler-sfc

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

@vue/compiler-ssr

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

@vue/compiler-vapor

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

@vue/reactivity

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/runtime-vapor

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: b00d41f

@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 87.5 kB 30.7 kB 27.1 kB
runtime-dom.global.prod.js 128 kB 47.7 kB 42.7 kB
vue.global.prod.js 188 kB 68 kB 60.5 kB

Usages

Name Size Gzip Brotli
createApp (CAPI only) 55.9 kB 21.8 kB 19.9 kB
createApp 65.8 kB 25.4 kB 23 kB
createApp + vaporInteropPlugin 128 kB (+120 B) 46.7 kB (+46 B) 41.9 kB (+82 B)
createVaporApp 37.2 kB 14.2 kB 13.1 kB
createSSRApp 70.8 kB 27.3 kB 24.8 kB
createVaporSSRApp 46 kB 17.5 kB 16.1 kB
defineCustomElement 72.4 kB 27.3 kB 24.8 kB
defineVaporCustomElement 52.3 kB 19.1 kB 17.5 kB
overall 83.1 kB 31.4 kB 28.4 kB

Apps

Name Size Gzip Brotli
counter app (CAPI only) 57.6 kB 22.4 kB 20.3 kB
counter vapor app (CAPI only) 47.5 kB 17.7 kB 16.2 kB
todo app (CAPI only) 74.4 kB 28.5 kB 26 kB
todo vapor app (CAPI only) 81.2 kB 30 kB 27.3 kB

@edison1105
edison1105 force-pushed the fix/vapor-vdom-child-transition-hooks branch from a686ce9 to b00d41f Compare December 4, 2026 00:28
@edison1105 edison1105 added the scope: vapor related to vapor mode label Dec 4, 2026
@edison1105
edison1105 merged commit 532b881 into vuejs:minor Dec 4, 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