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
After I updated this repo up to 7.* I see that it warns me to change prop from child component.
Let me explain more clearly.
I have a parent component P. P has a child component C. P pass data to C .ex: INFOR = {a: 1, b: 2}
And of course C has Props property corresponding.
I want that if child component C change INFOR, only change value of a or b property, NOT add new or delete current property, it also change same thing in the parent component P. In short like data-two-way binding. I want to take advantage of the reference of object property, Or value of element in an array, also not add or delete any element. This one also happens even with VueX.
Vue also say about this problem
This way help me to save time instead of writing $emit event, and code look more simply.
Why is this one prevented from this version 7.*
Can you explain to me why I shouldn't do it while I think I can take advantage of the reference
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
After I updated this repo up to 7.* I see that it warns me to change prop from child component.
Let me explain more clearly.
I have a parent component P. P has a child component C. P pass data to C .ex: INFOR = {a: 1, b: 2}
And of course C has Props property corresponding.
I want that if child component C change INFOR, only change value of a or b property, NOT add new or delete current property, it also change same thing in the parent component P. In short like data-two-way binding. I want to take advantage of the reference of object property, Or value of element in an array, also not add or delete any element. This one also happens even with VueX.
Vue also say about this problem

This way help me to save time instead of writing $emit event, and code look more simply.
Why is this one prevented from this version 7.*
Can you explain to me why I shouldn't do it while I think I can take advantage of the reference
The text was updated successfully, but these errors were encountered: