Skip to content

Commit 034e077

Browse files
authored
Update connect.md
remove extra space in connect.md
1 parent fa597b5 commit 034e077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/connect.md

+1-1
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)