Skip to content

Instantly share code, notes, and snippets.

@sethvincent
Last active July 23, 2016 16:51
Show Gist options
  • Save sethvincent/36495303cedfd1046f587cda0d831839 to your computer and use it in GitHub Desktop.
Save sethvincent/36495303cedfd1046f587cda0d831839 to your computer and use it in GitHub Desktop.

app.model, reducers, effects, & subscriptions:

app.model({
  state: {},
  reducers: {
    exampleReducer: function (data, state) { return data }
  },
  effects: {
    exampleEffect: function (data, state, send, done) { return data }
  },
  subscriptions: [
    function (send, done) {}
  ]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment