0👍
The issue here is that the state.categories reference change. Then you need to inform Vue the reference changed.
Try using
Vue.set(state, 'categories', categories )
0👍
What is your state object looks like?
If you don’t have categories in your state object, most likely, after you add it to it, categories wont be reactive.
- [Vuejs]-Prevent button being focused (VueJS, Buefy)
- [Vuejs]-Over-riding style won't effect from flip-clock cdn
Source:stackexchange.com