From 034e0775a1824ba5ae295b68c73d05105c6ce6c0 Mon Sep 17 00:00:00 2001 From: jspurlin Date: Mon, 29 Aug 2022 09:36:29 -0700 Subject: [PATCH] Update connect.md remove extra space in connect.md --- docs/api/connect.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/connect.md b/docs/api/connect.md index 112b728ce..9e42fb421 100644 --- a/docs/api/connect.md +++ b/docs/api/connect.md @@ -244,7 +244,7 @@ const areStatesEqual = (next, prev) => prev.entities.todos === next.entities.todos ``` -You may wish to override `areStatesEqual` if your `mapStateToProps` function is computationally expensive and is also only concerned with a small slice of your state. The example above will effectively ignore state changes for everything but that slice of state. Additionally, `areStatesEqual` provides `nextOwnProps` and `prevOwnProps` to allow for more effective scoping of your state which your connected component is interested in, if needed. +You may wish to override `areStatesEqual` if your `mapStateToProps` function is computationally expensive and is also only concerned with a small slice of your state. The example above will effectively ignore state changes for everything but that slice of state. Additionally, `areStatesEqual` provides `nextOwnProps` and `prevOwnProps` to allow for more effective scoping of your state which your connected component is interested in, if needed. This would likely impact the other equality checks as well, depending on your `mapStateToProps` function.