0👍
You can do this within asyncData of the pages that need the store modules:
asyncData (context) {
context.store.registerModule('moduleName', () => import('/path/to/modules/file'))
}
Source:stackexchange.com
0👍
You can do this within asyncData of the pages that need the store modules:
asyncData (context) {
context.store.registerModule('moduleName', () => import('/path/to/modules/file'))
}