You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Non-reactive props passed to mount are made deeply reactive, which does not match runtime vue behavior.
This is most noticeable when passing a Component as a prop. The resulting reactivity triggers the vue "Component that was made a reactive object" warning when attempting to render the provided component.
For the example reproduction, compare the running vue application from npm run dev to the output of tests from npm run test:unit.
Apologies for the GH link rather thank stackblitz, the latter isn't playing ball for me right now.
Thank you for your detailed repro. This is indeed looks like something we could fix.
I suppose we could use shallowReactive() for the root prop container. This would track top-level replacements made by setProps at without converting property values into proxies.
Feel free to open a PR, we would gladly review and merge it!
As I've outlined in the PR's description, this breaks an existing test introduced in light of #1476, which I suspect has been enforcing incorrect semantic behavior since its addition.
I've extended my reproduction with an example of that report, showing that as-is it is broken in runtime environments without reactive wrapping. ref ackwell/reproductions@692eaf7
Activity
cexbrayat commentedon Sep 23, 2026
Hi @ackwell
Thank you for your detailed repro. This is indeed looks like something we could fix.
I suppose we could use
shallowReactive()for the root prop container. This would track top-level replacements made bysetPropsat without converting property values into proxies.Feel free to open a PR, we would gladly review and merge it!
ackwell commentedon Sep 24, 2026
Thanks! Have done, ref. #2951.
As I've outlined in the PR's description, this breaks an existing test introduced in light of #1476, which I suspect has been enforcing incorrect semantic behavior since its addition.
I've extended my reproduction with an example of that report, showing that as-is it is broken in runtime environments without reactive wrapping. ref ackwell/reproductions@692eaf7
fix!: store props in shallow reactive to avoid deep propagation (vuej…