From 2fb59ca361ec86f304928b1197c466b942410589 Mon Sep 17 00:00:00 2001 From: Pier Paolo Ramon Date: Tue, 2 Jul 2019 12:57:35 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20small=20typo=20(they=20=E2=86=92=20the)?= =?UTF-8?q?=20in=20hooks.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/versioned_docs/version-7.1/api/hooks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-7.1/api/hooks.md b/website/versioned_docs/version-7.1/api/hooks.md index 28706c2b7..dc8015515 100644 --- a/website/versioned_docs/version-7.1/api/hooks.md +++ b/website/versioned_docs/version-7.1/api/hooks.md @@ -46,7 +46,7 @@ The selector is approximately equivalent to the [`mapStateToProps` argument to ` However, there are some differences between the selectors passed to `useSelector()` and a `mapState` function: - 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. -- When an action is dispatched, `useSelector()` will do a shallow 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. +- When an action is dispatched, `useSelector()` will do a shallow 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. - 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. - Extra care must be taken when using memoizing selectors (see examples below for more details). - `useSelector()` uses strict `===` reference equality checks by default, not shallow equality (see the following section for more details).