Adding store later after create project
-
Hi All,
Regarding this question https://forum.quasar-framework.org/topic/1953/adding-a-store-vuex-later I still don’t get the answer.
How to solve this problem properly instead of re-init new project like what I do if I want to init/add vuex store later (don’t get me wrong, it’s notquasar new store store_name
). Doing like what I did is non-sense -
@samodraland no automated way atm, but you can just copy the boilerplate here https://quasar.dev/quasar-cli/vuex-store#Adding-a-Vuex-Module, then save it in the
src/store/index.js
file. -
@metalsadman I have tried before and all states in the store are undefined, except if I re-init project with included store