[Vuejs]-Logging rootState and all mutations that have taken place in the mounted hook of a component?

0๐Ÿ‘

  • Get rootState: this.$store.state
  • Get Vuex mutation lists array: this.$store._mutations
export default {
  name: 'Error',
  components: { PageHeader },
  mounted() {
    console.log('rootState: ', this.$store.state);
    console.log('Vuex mutations: ', this.$store._mutations);
  },
  methods: {
}

Leave a comment