fix(runtime-core): track template ref keys to prevent setupState writes#14372
fix(runtime-core): track template ref keys to prevent setupState writes#14372serkodev wants to merge 2 commits into
Conversation
📝 WalkthroughWalkthroughThe changes introduce per-component template reference key tracking to prevent setup refs from being overwritten when a template ref with the same key is created. A new test case validates this collision prevention, two helper functions track registered template ref keys, and a guard blocks setup ref configuration when a key collision is detected. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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. 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: |
|
duplcaite of #12756 Thanks for the PR. But we also consider PROD mode |
Prevents
setupStateref writes for keys created viauseTemplateRefby tracking template-ref keys on refs.Fixed #14371
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.