Sha256: 51ac505da992f2ca3de158ff15ccc2fef5155b90c425073ad01ae655c6f3b8a5

Contents?: true

Size: 963 Bytes

Versions: 2

Compression:

Stored size: 963 Bytes

Contents

import { actions }    from "./actions"
import { getters }    from "./getters"
import { mutations }  from "./mutations"
import { state }      from "./state"

// https://vuex.vuejs.org/guide/
//
// At the center of every Vuex application is the store. A "store" is basically a
// container that holds your application state. There are two things that make a
// Vuex store different from a plain global object:
//
// Vuex stores are reactive. When Vue components retrieve state from it, they will
// reactively and efficiently update if the store's state changes.
//
// You cannot directly mutate the store's state. The only way to change a store's
// state is by explicitly committing mutations. This ensures every state change
// leaves a track-able record, and enables tooling that helps us better understand
// our applications
//
export default {
  namespaced: true,

  actions:    actions,
  getters:    getters,
  mutations:  mutations,
  state:      state
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vue-generators-0.1.3 lib/vue/generators/vue/store/templates/Store.template
vue-generators-0.1.2 lib/vue/generators/vue/store/templates/Store.template