DEV Community

Discussion on: Watch for Vuex State changes!

Collapse
 
viniciuskneves profile image
Vinicius Kiatkoski Neves

Hey!

The difference is basically that I'm not watching these values so I don't need to declare them in the data property. The downside, of my approach, is lack of visibility (you've no clue, without reading the code, that these values exist). It is definitely better now if you use the Composition API.

I hope it helps, let me know if you still have questions!