From f3e9a32d97ba5aa83329bc1e38cd7ed67119bc2e Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 20 May 2020 14:56:16 +0200 Subject: [PATCH] docs: disableVuex in nuxt.config.js Close #160 --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index a7f0aa0c..babbd806 100644 --- 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 -- 2.47.3