Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the namespace later to create an abstract store #111

Open
Jupdi opened this issue May 24, 2022 · 0 comments
Open

Change the namespace later to create an abstract store #111

Jupdi opened this issue May 24, 2022 · 0 comments

Comments

@Jupdi
Copy link

Jupdi commented May 24, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant