Skip to content

Commit 92c0d09

Browse files
vkroltimdorr
authored andcommitted
Fix the typo in hooks.md (#1329)
they -> the
1 parent bf13034 commit 92c0d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The selector is approximately equivalent to the [`mapStateToProps` argument to `
4646
However, there are some differences between the selectors passed to `useSelector()` and a `mapState` function:
4747

4848
- The selector may return any value as a result, not just an object. The return value of the selector will be used as the return value of the `useSelector()` hook.
49-
- When an action is dispatched, `useSelector()` will do a reference comparison of the previous selector result value and the current result value. If they are different, the component will be forced to re-render. If they are the same, they component will not re-render.
49+
- When an action is dispatched, `useSelector()` will do a reference comparison of the previous selector result value and the current result value. If they are different, the component will be forced to re-render. If they are the same, the component will not re-render.
5050
- The selector function does _not_ receive an `ownProps` argument. However, props can be used through closure (see the examples below) or by using a curried selector.
5151
- Extra care must be taken when using memoizing selectors (see examples below for more details).
5252
- `useSelector()` uses strict `===` reference equality checks by default, not shallow equality (see the following section for more details).

0 commit comments

Comments
 (0)