]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: disableVuex in nuxt.config.js
authorEduardo San Martin Morote <posva@users.noreply.github.com>
Wed, 20 May 2020 12:56:16 +0000 (14:56 +0200)
committerGitHub <noreply@github.com>
Wed, 20 May 2020 12:56:16 +0000 (14:56 +0200)
Close #160

README.md

index a7f0aa0c3a75d533ceca6518719bb0de41618763..babbd8064cd1eb374adfa005ea0a8d737442c091 100644 (file)
--- a/README.md
+++ b/README.md
@@ -273,6 +273,14 @@ export default {
 }
 ```
 
+By default, it will also disable Vuex so you can directly use the `store` folder for pinia. If you want to keep using Vuex, you need to provide an option in `nuxt.config.js`:
+
+```js
+export default {
+  disableVuex: false
+}
+```
+
 If you are dealing with SSR, in order to make sure the correct store is retrieved by `useStore` functions, pass the current `req` to `useStore`. **This is necessary anywhere not in the list above**:
 
 ```js