From 4d7f3908df2e53da72c99c6c4fd89abcd101837f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9l=C3=A9my=20Ledoux?= Date: Wed, 11 Mar 2020 05:05:10 -0500 Subject: [PATCH] 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 Co-authored-by: Katashin --- docs/guide/modules.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guide/modules.md b/docs/guide/modules.md index 5630c8f6e..5723b4060 100644 --- a/docs/guide/modules.md +++ b/docs/guide/modules.md @@ -280,6 +280,10 @@ export function createPlugin (options = {}) { You can register a module **after** the store has been created with the `store.registerModule` method: ``` js +import Vuex from 'vuex' + +const store = new Vuex.Store({ /* options */ }) + // register a module `myModule` store.registerModule('myModule', { // ...