Closed HappyNiel closed 5 years ago
...
└── store
├── store.ts # where we assemble modules and export the store
├── getters.ts # root getters
├── actions.ts # root actions
├── mutations.ts # root mutations
└── modules
├── cart.js # cart module
└── products.js # products module
Managed to load the user state on app load (basically using F5). Now to properly set up the Vuex store using TS.
The basics of the store are set up.
Next step: Work out the UserModule with all necessary properties, getters, mutations, and actions.
Start it made and it works. Will iterate on it when needed.
Implement the Vuex store to manage the state of the application.
Found an article which uses Vuex in combination with TypeScript https://codeburst.io/vuex-and-typescript-3427ba78cfa8