Skip to content

fix(runtime-vapor): keep the attribute cache out of internal element slots - #16216

Merged
edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-attr-cache-internal-slots
Nov 10, 2026
Merged

edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-attr-cache-internal-slots

Conversation

@ValentinYoushkevich

Copy link
Copy Markdown
Contributor

A vapor element caches each attribute set by setAttr in el['$' + key], so an attribute named transition lands in el.$transition, the slot that holds the element's transition hooks. Once any <Transition> has been used in the app, inserting or removing that element calls the string as hooks: TypeError: transition.beforeEnter is not a function on mount, leave is not a function on unmount.

transition is a common UnoCSS attributify utility (transition="all duration-200"), and on a component it falls through to the root, e.g. airi (playground).

The attribute cache now uses the $a$ prefix, like the $p$ prefix of the DOM prop cache.

@coderabbitai

coderabbitai Bot commented Nov 10, 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: 0135578c-9ecb-4a5c-9575-02e451622991

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 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

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

@vue/compiler-dom

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

@vue/compiler-sfc

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

@vue/compiler-ssr

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

@vue/compiler-vapor

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

@vue/reactivity

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/runtime-vapor

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: aa96072

@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 124 kB 46.3 kB 41.5 kB
vue.global.prod.js 184 kB 66.6 kB 59.3 kB

Usages

Name Size Gzip Brotli
createApp (CAPI only) 55.2 kB 21.5 kB 19.6 kB
createApp 64.5 kB 24.8 kB 22.6 kB
createApp + vaporInteropPlugin 119 kB (+12 B) 43.6 kB (-7 B) 39.3 kB (+48 B)
createVaporApp 34.8 kB (+12 B) 13.4 kB (-3 B) 12.3 kB (-1 B)
createSSRApp 69.4 kB 26.8 kB 24.4 kB
createVaporSSRApp 42.6 kB (+4 B) 16.2 kB (-3 B) 14.9 kB (-5 B)
defineCustomElement 71 kB 26.8 kB 24.4 kB
defineVaporCustomElement 49.9 kB (+12 B) 18.2 kB (+1 B) 16.7 kB (-4 B)
overall 81.4 kB 30.8 kB 27.8 kB

@edison1105 edison1105 added the scope: vapor related to vapor mode label Nov 10, 2026
@edison1105
edison1105 merged commit 0c952f2 into vuejs:minor Nov 10, 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