Skip to content

fix(runtime-vapor): pause tracking when invoking function refs - #14986

Merged
edison1105 merged 1 commit into
minorfrom
edison/fix/setFunctionTemplateRefEffectFree
Jun 18, 2026
Merged

edison1105 merged 1 commit into
minorfrom
edison/fix/setFunctionTemplateRefEffectFree

Conversation

@edison1105

@edison1105 edison1105 commented Jun 18, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Bug Fixes

    • Fixed template reference function callbacks to prevent unintended tracking of reactive dependencies during execution, ensuring callbacks don't re-trigger when underlying reactive state changes occur.
  • Tests

    • Added test case validating that function reference callbacks do not track reactive dependencies and only execute once on initial mount, preventing unnecessary re-invocations in reactive scenarios.

@coderabbitai

coderabbitai Bot commented Jun 18, 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: Pro

Run ID: ecd9d45a-31a7-4948-9661-b8042423d932

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:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch edison/fix/setFunctionTemplateRefEffectFree

Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new

pkg-pr-new Bot commented Jun 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

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

@vue/compiler-dom

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

@vue/compiler-sfc

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

@vue/compiler-ssr

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

@vue/compiler-vapor

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

@vue/reactivity

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/runtime-vapor

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: 1521f53

@github-actions

Copy link
Copy Markdown

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 86.7 kB 30.3 kB 26.7 kB
runtime-dom.global.prod.js 113 kB 42.7 kB 38.2 kB
vue.global.prod.js 173 kB 62.5 kB 55.8 kB

Usages

Name Size Gzip Brotli
createApp (CAPI only) 51.6 kB 20.1 kB 18.4 kB
createApp 60.6 kB 23.5 kB 21.3 kB
createApp + vaporInteropPlugin 114 kB 40.9 kB 36.8 kB
createVaporApp 28.4 kB 11 kB 10.1 kB
createSSRApp 65.2 kB 25.3 kB 22.9 kB
createVaporSSRApp 33.5 kB 12.8 kB 11.8 kB
defineCustomElement 67.3 kB 25.5 kB 23.2 kB
defineVaporCustomElement 50.2 kB 17.8 kB 16.3 kB
overall 75.9 kB 28.9 kB 26.2 kB

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.

1 participant