|
@@ -1,8 +1,8 @@
|
|
|
# redux-sac
|
|
|
|
|
|
-Slice and compose redux-type reducers.
|
|
|
+## Slice and compose redux-type reducers.
|
|
|
|
|
|
-## `subReducer(key, reducer, additionalKey, ...)`
|
|
|
+### `subReducer(key, reducer, additionalKey, ...)`
|
|
|
|
|
|
Creates a wrapper reducer that call `reducer`
|
|
|
on the substate specified by `key`.
|
|
@@ -43,7 +43,7 @@ will be fetched and passed to a sub-reducer:
|
|
|
|
|
|
This technique is mentioned in Redux docs, in "Beyond combineReducers" page.
|
|
|
|
|
|
-## `composeReducers(reducer1, reducer2, ...)`
|
|
|
+### `composeReducers(reducer1, reducer2, ...)`
|
|
|
|
|
|
Creates a wrapper reducer that calls passed reducers
|
|
|
one after another, passing intermediate states.
|
|
@@ -60,7 +60,9 @@ Useful to "concatenate" a few `subReducer`s. like:
|
|
|
)
|
|
|
```
|
|
|
|
|
|
-## `cowValueModel(key, ...)`
|
|
|
+## Redux helpers
|
|
|
+
|
|
|
+### `cowValueModel(key, ...)`
|
|
|
|
|
|
Creates an object with set of functions allowing
|
|
|
to set or get specified key from any object.
|