You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
11
11
This package is a high-order reducer that updates state using entities from [normalizr](https://github.com/paularmstrong/normalizr).
12
12
By default, it expects the action to have a property of `entities` or to follow the [`flux-standard-action` spec](https://github.com/acdlite/flux-standard-action).
13
-
However, it is possible to pass a data resolver ([see Parameters](#parameter-data-resolver)) if your case doesn't match either of those.
13
+
However, it is possible to pass a data resolver ([see Parameters](#parameters)) if your case doesn't match either of those.
Reducers are passed directly into `combineReducers` from redux, after the entities have been updated in state. It is called with the updated state and immediately returned.
53
53
54
-
### [#parameters-data-resolver]dataResolver
54
+
### dataResolver
55
55
The data resolver is a lookup function that is passed the action and returns the entities object to use while updating.
56
56
If the data resolver returns a falsy value the `entities-reducer` will skip process and move directly to handling the custom reducers.
57
57
Below is a customer dataResolver example, or you can checkout the [default resolver](src/index.js).
0 commit comments