Skip to content

Instantly share code, notes, and snippets.

@webmasterdevlin
Last active March 13, 2019 02:35
Show Gist options
  • Save webmasterdevlin/b2fe3e1be1f3951d2bfb7ebc26aa9163 to your computer and use it in GitHub Desktop.
Save webmasterdevlin/b2fe3e1be1f3951d2bfb7ebc26aa9163 to your computer and use it in GitHub Desktop.
Vuex Types : src/store/types.js
// Getters
export const GETTERS_INIT_HEROES = "GETTERS_INIT_HEROES";
export const GETTERS_INIT_HERO = "GETTERS_INIT_HERO";
// Mutations
export const MUTATE_GET_HEROES = "MUTATE_GET_HEROES";
export const MUTATE_GET_HERO = "MUTATE_GET_HERO";
export const MUTATE_ADD_HERO = "MUTATE_ADD_HERO";
export const MUTATE_UPDATE_HERO = "MUTATE_UPDATE_HERO";
export const MUTATE_REMOVE_HERO = "MUTATE_REMOVE_HERO";
// Actions
export const ACTION_GET_HEROES = "ACTION_GET_HEROES";
export const ACTION_GET_HERO = "ACTION_GET_HERO";
export const ACTION_ADD_HERO = "ACTION_ADD_HERO";
export const ACTION_UPDATE_HERO = "ACTION_UPDATE_HERO";
export const ACTION_REMOVE_HERO = "ACTION_REMOVE_HERO";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment