DEV Community

Discussion on: 🚩 Vuex Pattern: Smart Module Registration

Collapse
 
nkoik profile image
Nikos Koikas

I agree with you.
Of course, you need a good experience with Vuex. In your example, auth.js module file has different workflow from standard modules.
Every project is different. As you said above, this technique make your development faster and (cleaner), but loses a little bit from flexibility. Before designing the architecture of a project's store, you have to consider the pros and cons of this auto-registration pattern and if it suits to your project.

Some comments have been hidden by the post's author - find out more