-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat: Dynamically register and unregister a module #266
Labels
enhancement
New feature or request
Comments
daniluk4000
pushed a commit
to daniluk4000/nuxt-typed-vuex
that referenced
this issue
Feb 22, 2022
daniluk4000
pushed a commit
to daniluk4000/nuxt-typed-vuex
that referenced
this issue
Feb 24, 2022
daniluk4000
pushed a commit
to daniluk4000/nuxt-typed-vuex
that referenced
this issue
Feb 24, 2022
daniluk4000
pushed a commit
to daniluk4000/nuxt-typed-vuex
that referenced
this issue
Feb 28, 2022
…config for inline typing
daniluk4000
added a commit
to daniluk4000/nuxt-typed-vuex
that referenced
this issue
Mar 31, 2022
…anielroe#272 fixes, update docs with non-spread usage example
Any info on this? I can't wait to #267 merges |
@Strongleong you can use my module In package.json
It contains my PRs and I use it in my production project |
daniluk4000
added a commit
to daniluk4000/nuxt-typed-vuex
that referenced
this issue
Oct 5, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🆒 Your use case
In project with many undepended pages I want to dynamically register and unregister modules based on my needs on global level. I want those modules to be accessible and typed from anywhere. I understand all risks of possible-undefined module to be typed.
Currently, I can achieve this behavior by passing non-registered modules to getAccessorType, but if I do register those modules using store.registerModule they does not appear in $accessor.
🆕 The solution you'd like
Allow to register/unregister modules on global level and registering non-exisiting modules in getAccessorType, but with separate parameter, which makes this module possible-undefined
🔍 Alternatives you've considered
Use "useAccessor" and deal with usage on local level only
The text was updated successfully, but these errors were encountered: