ooade/vuex-examples

Mutations Must Be Synchronous

stolemotion opened this issue · 1 comments

In the blob/gallery/store/index.js store the mutation fetchImages directly fetches data from an api, but the documentation for Vuex specifies that mutations must be synchronous.

ooade commented

Yeah, you're right; fetching content in the store should be an action. How did i miss that? 😲
Do you mind sending in a PR to correct that?