Update README.md with correct order of arguments in reducer (#370)

This commit is contained in:
Paul Sonnentag
2016-12-19 13:33:04 +01:00
committed by Yoshua Wuyts
parent 0719c43855
commit ff1073a664
+1 -1
View File
@@ -285,7 +285,7 @@ app.model({
namespace: 'todos',
state: { values: [] },
reducers: {
add: function (data, state) {
add: function (state, data) {
return { todos: data }
}
},