mrcrowl / vuex-typex

Typescript builder for strongly-typed access to Vuex Store modules
MIT License
193 stars 22 forks source link

Is it possible to dynamically register modules? #20

Closed rugia813 closed 5 years ago

rugia813 commented 5 years ago

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

mrcrowl commented 5 years ago

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

mrcrowl commented 5 years ago

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

mrcrowl commented 5 years ago

Published as vuex-typex v3.1.5