Skip to content

Instantly share code, notes, and snippets.

@webmasterdevlin
Last active March 13, 2019 02:43
Show Gist options
  • Save webmasterdevlin/ad5f05ebd0f1fbeec9162e8b478b8caf to your computer and use it in GitHub Desktop.
Save webmasterdevlin/ad5f05ebd0f1fbeec9162e8b478b8caf to your computer and use it in GitHub Desktop.
Vuex State : src/store/modules/heroes/state.js
const state = {
heroes: [], // this heroes array must be initialized with and empty array.
hero: {} // this hero object must be initialized with and empty object.
};
export default state;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment