vuex-class-component icon indicating copy to clipboard operation
vuex-class-component copied to clipboard

Change the namespace later to create an abstract store

Open Jupdi opened this issue 3 years ago • 0 comments

Hi, I want to implement an abstract store because we have some stores that have actions and properties in common though our app. Therefore i created an abstract store class that has all properties and actions that are the same between all classes. Now I extend this class by the stores. But now i cannot extend my store implementations by the VuexModule class an therefore i cannot define the namespace. Is it possible to define the vuex module directly I my main store.ts where I normally would use extractVuexModule?

I can change some properties but not the internal path: const filterStoreModule = (extractVuexModule(FilterStore)) filterStoreModule.prototype.namespaced = true Thanks

Jupdi avatar May 24 '22 21:05 Jupdi