fix(runtime-core): Revert to using InternalObjectKey for normalized slots (fix #10709) #10713
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.
After the commit af733d, the normalization of slots has lost track, and the
vNode
is trying to reassign the_ctx
property, which was already set in thenormalize
function. To address this issue, I have reverted the behavior to the state before the commit. Additionally, we could consider renaming theInternalObjectKey
to a more clear and descriptive name. I'm looking forward to your feedback on these potential solutions.Link to minimal reproduction
https://play.vuejs.org/#eNqNUsFuwjAM/RUrmtQiVUWDnRAgAeKwHbZp2zHSVFEDYW1SJS5DQv33OelgbBobt9jv2e/Zzl5Mqird1igGYugWVlUEDqmuxlKrsjKWYA8WlwnkuFQaZ4aTGjUlsIYGltaUEHF5JLXUC6MdgadMYPSzIN5LDaCzEgcQBU6U+IxFnaONOxBwH1NtNazjKFfbKAFaK5deucKQS7llVhcUdzqe20jd8ONUd3qB7vQf3eAtgX3zTfuc4uwCxdkFitNW8RMC39OPOoC4MxpDdN3r84o94A2cOBl226vxvTggLKsiI+QIYNj663Iw7J4gIhHkeIKlWqUbZzSfPshKseACVaB9qEjxhFIMDoakyIrCvN+FHNkaw0ShZo2Lt1/yG7fzOSkeLTq0W5TiiFFmV0gtPH++xx2/j2Bp8rpg9h/gEzpT1N5jS5vWOmfbJ7zg9jZ8YKVXL26+I9TuMJQ3GrYY+FLwB/a7Ojf6l91+enPYPm/xdYvW9+QFMpD2eqL5AIr6FP8=