Skip to content

Commit

Permalink
docs: disableVuex in nuxt.config.js
Browse files Browse the repository at this point in the history
Close #160
  • Loading branch information
posva committed May 20, 2020
1 parent 6187fff commit f3e9a32
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3e9a32

Please sign in to comment.