Skip to content

fix(runtime-vapor): keep refs in a v-for source as row items - #15909

Merged
edison1105 merged 2 commits into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-for-ref-items
Oct 19, 2026
Merged

edison1105 merged 2 commits into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-for-ref-items

Conversation

@ValentinYoushkevich

Copy link
Copy Markdown
Contributor

In vapor, a v-for over an array whose items are refs gives the template the ref's value instead of the ref, unlike VDOM and the docs on refs inside arrays. {{ c.value }} and v-model="digit.value" stay empty, and a reorder then writes one row's ref into another, ending in Maximum call stack size exceeded.

The row ref was created with shallowRef(item), which returns a ref argument as is. A ref item now gets its own row ref, in both createFor and createForSlots.

This shows up in OTP inputs such as VerifyCode.vue and counter lists such as CompteurView.vue. Playground

@coderabbitai

coderabbitai Bot commented Oct 17, 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
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f3a9d48c-ba11-4e94-abd2-bea267c12180

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 17, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

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

@vue/compiler-dom

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

@vue/compiler-sfc

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

@vue/compiler-ssr

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

@vue/compiler-vapor

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

@vue/reactivity

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/runtime-vapor

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: aee023e

@github-actions

github-actions Bot commented Oct 17, 2026 •

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 119 kB 44.8 kB 40.2 kB
vue.global.prod.js 180 kB 65.1 kB 58 kB

Usages

Name Size Gzip Brotli
createApp (CAPI only) 54.6 kB 21.2 kB 19.4 kB
createApp 63.5 kB 24.5 kB 22.2 kB
createApp + vaporInteropPlugin 139 kB 50.2 kB 45 kB
createVaporApp 34.2 kB 13.2 kB 12.2 kB
createSSRApp 68.6 kB 26.5 kB 24.1 kB
createVaporSSRApp 41.1 kB 15.7 kB 14.4 kB
defineCustomElement 70.1 kB 26.5 kB 24.1 kB
defineVaporCustomElement 49.1 kB 18 kB 16.6 kB
overall 79.1 kB 30.1 kB 27.2 kB

@edison1105 edison1105 added the scope: vapor related to vapor mode label Oct 19, 2026
@edison1105
edison1105 merged commit ce9b91b into vuejs:minor Oct 19, 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