[Vuejs]-Need some guidance in VUEX and VUEJS

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.

Leave a comment