[Vuejs]-Vuex Data doesn't get updated on fetch when reloading browser (SSR) Nuxt

0👍

It is the expected behavior. Vuex state is kept in memory and when you reload the page it gets purged.

0👍

Instead of this state

export const state = () => {
  return {
    bots: []
  }
}

try this

export const state = () => ({
    bots: []
})

Leave a comment