Skip to content

Commit e385ee7

Browse files
authored
minor typo in api.md
`nextProps` seems like a typo, it should be `nextOwnProps`.
1 parent 1a39f71 commit e385ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ function selectorFactory(dispatch) {
374374
const actions = bindActionCreators(actionCreators, dispatch)
375375
const addTodo = (text) => actions.addTodo(ownProps.userId, text)
376376
return (nextState, nextOwnProps) => {
377-
const todos = nextState.todos[nextProps.userId]
377+
const todos = nextState.todos[nextOwnProps.userId]
378378
const nextResult = { ...nextOwnProps, todos, addTodo }
379379
ownProps = nextOwnProps
380380
if (!shallowEqual(result, nextResult)) result = nextResult

0 commit comments

Comments
 (0)