Vuex stores feature for Nuxt3
This should read all your store
folder the same way as Nuxt 2 does.
It reads store
folder, supports nested modules and SSR.
It however doesn't support separated files state.js
, actions.js
, mutations.js
, etc.
yarn add nuxt3-vuex-module
Add to your Nuxt 3 config file as following:
export default defineNuxtConfig({
modules: [
'nuxt3-vuex-module',
],
})