fix(runtime-core): invalidate detached v-for memo vnodes after unmount#14624
Conversation
📝 WalkthroughWalkthroughThis change fixes a bug where v-memo incorrectly skips updates when used with v-for inside v-if. The fix tightens the cache guard condition in the compiler, adds memo invalidation logic in the renderer's unmount function, and includes integration tests verifying the corrected behavior. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Size ReportBundles
Usages
|
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-sfc
@vue/compiler-ssr
@vue/reactivity
@vue/runtime-core
@vue/runtime-dom
@vue/server-renderer
@vue/shared
vue
@vue/compat
commit: |
|
/ecosystem-ci run |
|
📝 Ran ecosystem CI: Open
|
fix #12708
close #12710
Summary by CodeRabbit
Bug Fixes
Tests