Skip to content

Instantly share code, notes, and snippets.

@mikeapr4
Created April 14, 2019 00:51
Show Gist options
  • Save mikeapr4/c3556e3391b4b82a11a4e87d70735008 to your computer and use it in GitHub Desktop.
Save mikeapr4/c3556e3391b4b82a11a4e87d70735008 to your computer and use it in GitHub Desktop.
mutactions: {
async loadBooks({ state }) {
state.loading += 1;
const response = await get('/api/books');
state.books = response.data.books;
state.loading -= 1;
},
}
@Perlover
Copy link

Perlover commented May 9, 2019

Please fix:

mutactions -> mutations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment