Skip to content

Commit 452fd5f

Browse files
authored
docs: clarify nested module argument type (#1933)
1 parent 06b12ae commit 452fd5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ Dynamic module registration makes it possible for other Vue plugins to also leve
312312

313313
You can also remove a dynamically registered module with `store.unregisterModule(moduleName)`. Note you cannot remove static modules (declared at store creation) with this method.
314314

315-
Note that you may check if the module is already registered to the store or not via `store.hasModule(moduleName)` method.
315+
Note that you may check if the module is already registered to the store or not via `store.hasModule(moduleName)` method. One thing to keep in mind is that nested modules should be passed as arrays for both the `registerModule` and `hasModule` and not as a string with the path to the module.
316316

317317
### Preserving state
318318

0 commit comments

Comments
 (0)