I have a big problem using v-model with an object passed through 2 layers of nested components. I've described the problem here VueJS v-model for object prop through nested components doesn't make update them as expected . But now I'm wondering, maybe this approach is very bad and there are some reasons for it?
Asked
Active
Viewed 205 times
1 Answers
1
One or two lvls of props is okay. If you need to waterfall your data deeper, use store. Divide your components into container components and stupid components. Containres have connection with store and they apss data down to their childrens. Stupid components only render data and emits changes.

Sergey Shapirenko
- 152
- 1
- 6