From ff1073a664c71c62ffe4b6c4a21cecf2bdd3795a Mon Sep 17 00:00:00 2001 From: Paul Sonnentag Date: Mon, 19 Dec 2016 13:33:04 +0100 Subject: [PATCH] Update README.md with correct order of arguments in reducer (#370) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c33e222..f9dcf9f 100644 --- a/README.md +++ b/README.md @@ -285,7 +285,7 @@ app.model({ namespace: 'todos', state: { values: [] }, reducers: { - add: function (data, state) { + add: function (state, data) { return { todos: data } } },