Explorar o código

mention how to avoid stateful singletons in SSR clearer (#809)

katashin %!s(int64=8) %!d(string=hai) anos
pai
achega
a090c624f1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/en/modules.md

+ 1 - 1
docs/en/modules.md

@@ -248,7 +248,7 @@ You can also remove a dynamically registered module with `store.unregisterModule
 
 Sometimes we may need to create multiple instances of a module, for example:
 
-- Creating multiple stores that uses the same module;
+- Creating multiple stores that uses the same module (e.g. To [avoid stateful singletons in the SSR](https://ssr.vuejs.org/en/structure.html#avoid-stateful-singletons) when the `runInNewContext` option is `false` or `'once'`);
 - Register the same module multiple times in the same store.
 
 If we use a plain object to declare the state of the module, then that state object will be shared by reference and cause cross store/module state pollution when it's mutated.