mrcrowl / vuex-typex

Typescript builder for strongly-typed access to Vuex Store modules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to dynamically register modules?

rugia813 opened this issue · comments

tried to dynamically register modules for different pages, and got this error:
"Can't add module after vuexStore() has been called"

is this achievable somehow? register all modules for all pages doesn't seem to be ideal.

thanks

🤔 interesting... there's no good reason why it shouldn't be possible. Except that it hasn't been done.

Thanks for the PR. I'll publish to npm when I'm back at a computer.

Published as vuex-typex v3.1.5