Skip to content

Commit dd17c64

Browse files
Ildariktimdorr
andauthored
Fix broken link (#1513)
* Fix broken link * Use the same link format as connect.md Co-authored-by: Tim Dorr <[email protected]>
1 parent 81c93f1 commit dd17c64

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
@@ -40,7 +40,7 @@ Allows you to extract data from the Redux store state, using a selector function
4040

4141
> **Note**: The selector function should be [pure](https://en.wikipedia.org/wiki/Pure_function) since it is potentially executed multiple times and at arbitrary points in time.
4242
43-
The selector is approximately equivalent to the [`mapStateToProps` argument to `connect`](../using-react-redux/connect-extracting-data-with-mapStateToProps.md) conceptually. The selector will be called with the entire Redux store state as its only argument. The selector will be run whenever the function component renders (unless its reference hasn't changed since a previous render of the component so that a cached result can be returned by the hook without re-running the selector). `useSelector()` will also subscribe to the Redux store, and run your selector whenever an action is dispatched.
43+
The selector is approximately equivalent to the [`mapStateToProps` argument to `connect`](../using-react-redux/connect-mapstate) conceptually. The selector will be called with the entire Redux store state as its only argument. The selector will be run whenever the function component renders (unless its reference hasn't changed since a previous render of the component so that a cached result can be returned by the hook without re-running the selector). `useSelector()` will also subscribe to the Redux store, and run your selector whenever an action is dispatched.
4444

4545
However, there are some differences between the selectors passed to `useSelector()` and a `mapState` function:
4646

0 commit comments

Comments
 (0)