From 233b500413036097bf3c52b1807ac3efec78c62b Mon Sep 17 00:00:00 2001 From: Kia King Ishii Date: Thu, 26 Nov 2020 00:14:39 +0900 Subject: [PATCH] docs: add more clarity for getters in a module usage (#1874) close #1874 --- docs/guide/modules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/modules.md b/docs/guide/modules.md index e09d6f8c6..e6a52f17b 100644 --- a/docs/guide/modules.md +++ b/docs/guide/modules.md @@ -85,7 +85,7 @@ const moduleA = { ## Namespacing -By default, actions, mutations and getters inside modules are still registered under the **global namespace** - this allows multiple modules to react to the same mutation/action type. +By default, actions and mutations are still registered under the **global namespace** - this allows multiple modules to react to the same action/mutation type. Getters are also registered in the global namespace by default. However, this currently has no functional purpose (it's as is to avoid breaking changes). You must be careful not to define two getters with the same name in different, non-namespaced modules, resulting in an error. If you want your modules to be more self-contained or reusable, you can mark it as namespaced with `namespaced: true`. When the module is registered, all of its getters, actions and mutations will be automatically namespaced based on the path the module is registered at. For example: