|
@@ -12,11 +12,11 @@ const store = new Vuex.Store({ ...options })
|
|
|
|
|
|
- **state**
|
|
- **state**
|
|
|
|
|
|
- - type: `Object`
|
|
|
|
|
|
+ - type: `Object | Function`
|
|
|
|
|
|
- The root state object for the Vuex store.
|
|
|
|
|
|
+ The root state object for the Vuex store. [Details](state.md)
|
|
|
|
|
|
- [Details](state.md)
|
|
|
|
|
|
+ If you pass a function that returns an object, the returned object is used as the root state. This is useful when you want to reuse the state object especially for module reuse. [Details](modules.md#module-reuse)
|
|
|
|
|
|
- **mutations**
|
|
- **mutations**
|
|
|
|
|