[Vuejs]-How to re-load values in object using vuejs?

0👍

You should use deep watcher on your state:

data: () => {
    return {
      goals: []
    };
  },
  computed: {
    ...mapState('goalList', ['goalList']),
  },
  watch: {
    goalList: {
      handler(updatedGoals) {
        this.goals = updatedGoals
      },
      deep: true
    }
  }

Leave a comment