0👍
You can store your data or function inside Vuex so they are available across your entire application.
If you’re storing a longitude and lattitude value inside Vuex and update (mutate) them, you’ll automatically see the values update everywhere they are used.
The mutate functionality in Vuex follows the Vue reactivity rules.
0👍
In my opinion, there is no any other method to access global watcher instead of managing store. Vuex provides a good management of maintaining store globally.
see how it works from https://vuex.vuejs.org/, a smooth way to manage thing on central place, and when we render a app first time(as SPA or simple App), you just set/update state by call, and get update data location from store by getters.
- [Vuejs]-My page reloads, and the added task wont register
- [Vuejs]-Vue dynamic form elements in for loop
Source:stackexchange.com