Skip to content

Commit 4d7f390

Browse files
elevatebartktsn
andauthored
docs: make obvious where the store come from (#1687)
* docs: make obvious where to import store from As we browse through the modules page, it is unclear where the `store` is imported from. Since it is a one liner, I thought it would clarify to have the import explicitly here. Tell me what you think. * docs: import vuex instead of store Co-Authored-By: Katashin <[email protected]> Co-authored-by: Katashin <[email protected]>
1 parent 3a79b6d commit 4d7f390

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/guide/modules.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ export function createPlugin (options = {}) {
280280
You can register a module **after** the store has been created with the `store.registerModule` method:
281281

282282
``` js
283+
import Vuex from 'vuex'
284+
285+
const store = new Vuex.Store({ /* options */ })
286+
283287
// register a module `myModule`
284288
store.registerModule('myModule', {
285289
// ...

0 commit comments

Comments
 (0)