3 ms·
It is cool. I have seen similar things. The API calls should be separated from the module generator, vuex-module-generator focuses on reducing code line size an
by abdullahmara 8y ago
It is cool. I have seen similar things. The API calls should be separated from the module generator, vuex-module-generator focuses on reducing code line size and mutation. You can check this https://github.com/abdullah/vuex-module-generator/blob/master/src/state/crud.js#L39 https://github.com/abdullah/vuex-module-generator/blob/maste... to understand how we have implemented additional mutations and states. In my opinion, a module must handle just its job. Other jobs like API calls, checking local storage etc. should be separated. Thanks for your reply :)