Closed theaungmyatmoe closed 2 years ago
Hello, thank you for taking time filling this issue!
However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).
I hope to see your helper-created issue very soon!
Vue version
3.2.38
Link to minimal reproduction
https://github.com/amm834/vue-supabase-workout-app
Steps to reproduce
Create
nav link.Add Exercise
v-model
state. It is reactive.Add Exercise
you will see the generated form input as followingv-model
won't be reactive. That is bug. It is not working vue's deep reactivity.see https://github.com/amm834/vue-supabase-workout-app/blob/3a208d09a5b19103806c2195c91ac4d3d7fd3a6a/src/components/CreateWorkout.vue#L69
I have to initialize for union typed array, if i don't initalize that nothing will be shown when i select that workout type.
see https://github.com/amm834/vue-supabase-workout-app/blob/3a208d09a5b19103806c2195c91ac4d3d7fd3a6a/src/components/CreateWorkout.vue#L71
It is the problem of lost of deep reactivity.
According to the vue doc it should work as expected. But it is not working.What is expected?
Object inside that array should be reactive when I use it with
v-model
What is actually happening?
Reactive object is lost of it behavior what you called
reactive
inside the array. Vue doc mentioned object inside the array is reactive cuz of deep reactive mechanism but it is not working as expceted to be vue doc mentioned .See https://vuejs.org/guide/extras/reactivity-in-depth.html
System Info
Any additional comments?
Write more example and documentation for vue typescript. And example for how to manipulate with complex data structure and
v-model
. In fact, vue is lack of expert example in vue doc. Please provide that.If vue support on the fly
v-model
value that can be a great feature for us.