Skip to content

Commit 405d39b

Browse files
committed
Update connect.md
remove extra space in connect.md
1 parent 0846e26 commit 405d39b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/connect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ const areStatesEqual = (next, prev) =>
244244
prev.entities.todos === next.entities.todos
245245
```
246246
247-
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.
247+
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.
248248
249249
This would likely impact the other equality checks as well, depending on your `mapStateToProps` function.
250250

0 commit comments

Comments
 (0)