redux-fluent
Advanced tools
Comparing version 0.24.0 to 0.24.1
/**! | ||
* @build-info development - Fri Jan 26 2018 10:40:16 GMT+0000 (UTC) | ||
* @build-info development - Fri Jan 26 2018 14:53:22 GMT+0000 (UTC) | ||
* @name redux-fluent | ||
* @version 0.24.0 | ||
* @version 0.24.1 | ||
* @author Code-Y (https://github.com/Code-Y) | ||
@@ -7,0 +7,0 @@ * @description Tiny and eloquent way to manage a redux-like state manager |
/**! | ||
* @build-info production - Fri Jan 26 2018 10:40:16 GMT+0000 (UTC) | ||
* @build-info production - Fri Jan 26 2018 14:53:22 GMT+0000 (UTC) | ||
* @name redux-fluent | ||
* @version 0.24.0 | ||
* @version 0.24.1 | ||
* @author Code-Y (https://github.com/Code-Y) | ||
@@ -7,0 +7,0 @@ * @description Tiny and eloquent way to manage a redux-like state manager |
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="0.24.1"></a> | ||
## [0.24.1](https://github.com/Code-Y/redux-fluent/compare/v0.24.0...v0.24.1) (2018-01-26) | ||
<a name="0.24.0"></a> | ||
@@ -7,0 +12,0 @@ # [0.24.0](https://github.com/Code-Y/redux-fluent/compare/v0.22.2...v0.24.0) (2018-01-26) |
{ | ||
"name": "redux-fluent", | ||
"license": "MIT", | ||
"version": "0.24.0", | ||
"version": "0.24.1", | ||
"homepage": "https://github.com/Code-Y/redux-fluent#readme", | ||
@@ -6,0 +6,0 @@ "description": "Tiny and eloquent way to manage a redux-like state manager", |
@@ -12,3 +12,3 @@ # <a href='https://github.com/Code-Y/redux-fluent'><img src='https://raw.githubusercontent.com/Code-Y/redux-fluent/master/redux-fluent-logo.png' height='60' alt='Redux Fluent Logo' aria-label='https://github.com/Code-Y/redux-fluent' /></a> Redux Fluent | ||
[Try it out on RunKit](https://runkit.com/hitmands/5a6ae5fccfee52001263345f) | ||
[Try it out on RunKit](https://runkit.com/hitmands/redux-fluent-playground) | ||
@@ -47,12 +47,8 @@ | ||
const addTodo = createAction('@@todos | add'); | ||
const addTodoTask = (state, { payload }) => ({ | ||
...state, | ||
list: state.list.concat(payload), | ||
}); | ||
const todosReducer = createReducer('@@todos') | ||
.case(addTodo) | ||
.then(addTodoTask) | ||
.then((state, { payload }) => state.list.concat(payload)) | ||
.default() | ||
.default(() => []) | ||
; | ||
@@ -59,0 +55,0 @@ |
Sorry, the diff of this file is not supported yet
162753
79