Skip to content

fix(runtime-vapor): measure only the outermost render effect run of a component - #15993

Merged
edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-perf-nested-render-effect
Oct 23, 2026
Merged

edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-perf-nested-render-effect

Conversation

@ValentinYoushkevich

Copy link
Copy Markdown
Contributor

With app.config.performance enabled in dev, a vapor component that renders a v-if or v-for branch with dynamic content breaks: performance.measure throws The mark 'vue-renderEffect-<uid>' does not exist. A component that mounts such a branch renders nothing, and on updates the error reaches the error handler. Quasar turns the flag on for every quasar dev app (entry template).

The branch's render effects run inside the effect that creates them and share its vue-renderEffect-<uid> mark, so the inner endMeasure clears the mark the outer run still needs. Now only the outermost render effect run of a component is measured.

Playground (click the button: the console shows the error).

@coderabbitai

coderabbitai Bot commented Oct 23, 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: 5198fccb-e405-4be9-b707-9abeab55b1f7

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

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

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

@vue/compiler-dom

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

@vue/compiler-sfc

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

@vue/compiler-ssr

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

@vue/compiler-vapor

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

@vue/reactivity

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/runtime-vapor

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: 26fbd1a

@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 119 kB 45 kB 40.3 kB
vue.global.prod.js 180 kB 65.2 kB 58.1 kB

Usages

Name Size Gzip Brotli
createApp (CAPI only) 54.7 kB 21.3 kB 19.4 kB
createApp 63.6 kB 24.5 kB 22.3 kB
createApp + vaporInteropPlugin 144 kB 52 kB 46.5 kB
createVaporApp 34.2 kB 13.2 kB 12.2 kB
createSSRApp 68.7 kB 26.6 kB 24.1 kB
createVaporSSRApp 41.5 kB 15.8 kB 14.5 kB
defineCustomElement 70.2 kB 26.5 kB 24.1 kB
defineVaporCustomElement 49.1 kB 18 kB 16.5 kB
overall 79.2 kB 30.1 kB 27.3 kB

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