Skip to content

feat: Dynamically register and unregister a module #266

Open
@daniluk4000

Description

@daniluk4000

🆒 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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions