fix(runtime-core): named ref, Non-ref data should not be contaminated #7522
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
close #7529
TemplateRef overwrites reactive data
named ref, Non-ref data should not be contaminated
Playground Before:
https://sfc.vuejs.org/#__DEV__eNp9Ustu4zAM/BVCWCApUEvAPi6GW2SPe96rLonNNNpaj5UoN4Xhfy8lB23aAvWJj9EMOfQsfocgp4yiFV3qowkECSmHe+2MDT4SzBBx35OZEBY4Rm9hw/iNdtr13iWCo48W7l5R25lbRHimFjbn85mRy412nVrpmZgTQhvGPSFnAF1liHi806KEWsAu5YM1JEPECV15BPx1KezdfYHIlZ9JS+XSNS5kgqmxfsDxwlWBTEjPAbm0ZquqKv0a1rSsXGiu6K9UIdHzWBh6P/rYPkREx0Tz/IaHZXk3z/YPe3nyeRzggFC8Mol4GXgydII6LPtSBlmla3zIRN7Brh9N/8hy39iWJKtGxP8ZE/2tzmxvWH01qVPrIybp1Kux4lasB2zsPsh/yTs+MZ+GdS6NpEULtVJqfNOSa3EiCqlVKrvw+CB7b9WOeypmR8ZiM3i7+yG/y5+/1MD7XNclJtscon9KGFlRi9srcsXFCWMT0Q0YMX4p9gH7TvBD75No0Vz4nxPLC5tJ/Sc=
Playground After:
https://deploy-preview-7522--vue-sfc-playground.netlify.app/#__DEV__eNqlkk1r3DAQhv/KIAq7gciGQCkYJ6THnnvVxWuPs2qtj0oj7xrj/96RvKTb9hifNB96n9E7XsVX76s5oWhEG/ugPUFESv5FWW28CwQrBOx60jPC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