You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/api.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,11 @@ const store = new Vuex.Store({ ...options })
12
12
13
13
-**state**
14
14
15
-
- type: `Object`
15
+
- type: `Object | Function`
16
16
17
-
The root state object for the Vuex store.
17
+
The root state object for the Vuex store.[Details](state.md)
18
18
19
-
[Details](state.md)
19
+
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)
0 commit comments