Skip to content

Instantly share code, notes, and snippets.

@ooflorent
Created April 16, 2015 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ooflorent/dbeb9e1442960e214349 to your computer and use it in GitHub Desktop.
Save ooflorent/dbeb9e1442960e214349 to your computer and use it in GitHub Desktop.
Dummy Flux implementation
export const actions = {
doSomeStuff() {
return fetch('/api/stuff').then(
(res) => (stores.stuffList = res),
(err) => Promise.reject(err)
)
}
}
export const stores = {
stuffList: [],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment