Prop value that is initialized as undefined is not updating the child route when bound to router-view in production mode #1216
Labels
docs
Concerns the documentation content or the documentation website
Version
4.0.12
Reproduction link
github.com
Steps to reproduce
What is expected?
In development mode and production mode, when a ref that is initialized as undefined is passed into router-view as a prop and then updated to have a value, I expect that the child route will receive the updated prop value.
What is actually happening?
In production mode, when a ref that is initialized as undefined is passed into router-view as a prop and then updated to have a value, the child route only receives undefined, which is the value that the ref was initialized as.
I was updating from Vue 3.0 to Vue 3.2 and noticed that refs that are initialized as undefined and bound to router-view were not behaving correctly in production mode. I cannot repro this another way, such as using dynamic components, and believe it is something specific to router-view.
The text was updated successfully, but these errors were encountered: