Skip to content

fix(reactivity): cleanup unsubscribed computed deps and release stale ref oldValue#14439

Open
edison1105 wants to merge 1 commit intominorfrom
edison/fix/gctest
Open

fix(reactivity): cleanup unsubscribed computed deps and release stale ref oldValue#14439
edison1105 wants to merge 1 commit intominorfrom
edison/fix/gctest

Conversation

@edison1105
Copy link
Member

@edison1105 edison1105 commented Feb 10, 2026

Summary by CodeRabbit

  • New Features

    • Automatic garbage collection for computed properties and refs—unused computed values and reactive references now properly clean up memory when they have no active subscribers.
  • Tests

    • Enabled garbage collection verification tests to ensure computed properties and refs properly release memory when unsubscribed.

@coderabbitai
Copy link

coderabbitai bot commented Feb 10, 2026

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.

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
  • Post copyable unit tests in a comment
  • Commit unit tests in branch edison/fix/gctest

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

@github-actions
Copy link

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 86.4 kB 30.2 kB 26.6 kB
runtime-dom.global.prod.js 111 kB (+464 B) 41.7 kB (+150 B) 37.4 kB (+114 B)
vue.global.prod.js 170 kB (+464 B) 61.5 kB (+155 B) 54.8 kB (+55 B)

Usages

Name Size Gzip Brotli
createApp (CAPI only) 50.3 kB (+32 B) 19.7 kB (+14 B) 17.9 kB (-43 B)
createApp 59.8 kB (+525 B) 23.1 kB (+153 B) 21.1 kB (+125 B)
createApp + vaporInteropPlugin 82.9 kB (+564 B) 30.7 kB (+181 B) 27.8 kB (+164 B)
createVaporApp 29.1 kB (+523 B) 11.3 kB (+165 B) 10.3 kB (+161 B)
createSSRApp 64.1 kB (+525 B) 24.9 kB (+176 B) 22.6 kB (+158 B)
createVaporSSRApp 32.5 kB (+524 B) 12.5 kB (+153 B) 11.5 kB (+182 B)
defineCustomElement 65.8 kB (+525 B) 25 kB (+185 B) 22.8 kB (+218 B)
defineVaporCustomElement 39.4 kB (+523 B) 14.6 kB (+178 B) 13.4 kB (+191 B)
overall 74.7 kB (+565 B) 28.5 kB (+196 B) 25.9 kB (+190 B)

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 10, 2026

Open in StackBlitz

@vue/compiler-core

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

@vue/compiler-dom

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

@vue/compiler-sfc

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

@vue/compiler-ssr

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

@vue/compiler-vapor

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

@vue/reactivity

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/runtime-vapor

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: 84b6832

@edison1105
Copy link
Member Author

/ecosystem-ci run

@vue-bot
Copy link
Contributor

vue-bot commented Feb 10, 2026

📝 Ran ecosystem CI: Open

suite result latest scheduled
primevue success success
quasar success success
radix-vue success success
nuxt failure success
pinia success success
vue-i18n failure success
router failure failure
vuetify failure success
vue-macros failure success
vueuse failure success
vue-simple-compiler success success
vitepress success success
test-utils failure success
language-tools success success
vite-plugin-vue success success
vant success success

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants