Skip to content

Commit 0f164e2

Browse files
authored
fix(docs): updated anchor links for parameters
1 parent c8f4eee commit 0f164e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
This package is a high-order reducer that updates state using entities from [normalizr](https://github.com/paularmstrong/normalizr).
1212
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.
1414

1515
## Why
1616
**Why does this package exist?**
@@ -42,16 +42,16 @@ const rootReducer = combineReducers({
4242
export default rootReducer;
4343
```
4444

45-
## Parameters
45+
# Parameters
4646

4747
```javascript
4848
entitiesReducer(reducers, { dataResolver })
4949
```
5050

51-
### [#parameters-reducers] Reducers
51+
### Reducers
5252
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.
5353

54-
### [#parameters-data-resolver] dataResolver
54+
### dataResolver
5555
The data resolver is a lookup function that is passed the action and returns the entities object to use while updating.
5656
If the data resolver returns a falsy value the `entities-reducer` will skip process and move directly to handling the custom reducers.
5757
Below is a customer dataResolver example, or you can checkout the [default resolver](src/index.js).

0 commit comments

Comments
 (0)