From b2e2dd1ed91f6565dd68437120b43e693de90c39 Mon Sep 17 00:00:00 2001 From: Todd Kennedy Date: Sun, 12 Jun 2016 19:45:44 -0700 Subject: [PATCH] Fix order of arguments to effects This confused me a bit since it was the reverse of the `action` and `state` arguments for reducers. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f43d520..ebbea8b 100644 --- a/README.md +++ b/README.md @@ -478,7 +478,7 @@ function view (params, state, send) { app.model({ effects: { - login: (state, action, send) => { + login: (action, state, send) => { http.post('/login', { body: action.data }, (err, res, body) => { send('authorize', { payload: body }) })