Fix order of arguments to effects

This confused me a bit since it was the reverse of the `action` and `state` arguments for reducers.
This commit is contained in:
Todd Kennedy
2016-06-12 19:45:44 -07:00
committed by GitHub
parent 25fb0c1bdf
commit b2e2dd1ed9
+1 -1
View File
@@ -478,7 +478,7 @@ function view (params, state, send) {
app.model({ app.model({
effects: { effects: {
login: (state, action, send) => { login: (action, state, send) => {
http.post('/login', { body: action.data }, (err, res, body) => { http.post('/login', { body: action.data }, (err, res, body) => {
send('authorize', { payload: body }) send('authorize', { payload: body })
}) })