Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
VMG – Vuex module generator (github.com/abdullah)
19 points by abdullahmara on July 13, 2018 | hide | past | favorite | 4 comments



I've been working on something similar that we've been using internally. It supports delayed spinners and running multiple requests concurrently, with separate state.

It's not fully documented, but you can view the code here: https://gist.github.com/superMDguy/46e28c7c238b35416322ae268...


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/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 :)


I use vuex but trying hard to figure out what this is...


Hello! You can check integration examples https://github.com/abdullah/vuex-module-generator/tree/maste... I hope you will find your answers. You can open an issue :)




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: