Skip to content

Commit e05ed68

Browse files
authored
Merge pull request #2181 from reduxjs/docs/update-context-page
2 parents 416114f + 990806b commit e05ed68

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/using-react-redux/accessing-store.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ store interaction is handled. In typical usage, your own components should never
1717
won't ever reference the store directly. React Redux also internally handles the details of how the store and state are
1818
propagated to connected components, so that this works as expected by default.
1919

20-
However, there may be certain use cases where you may need to customize how the store and state are propagated to
20+
However, there may be certain use cases where you may need to customize how the store is passed to
2121
connected components, or access the store directly. Here are some examples of how to do this.
2222

2323
## Understanding Context Usage
@@ -26,8 +26,7 @@ Internally, React Redux uses [React's "context" feature](https://react.dev/learn
2626
Redux store accessible to deeply nested connected components. As of React Redux version 6, this is normally handled
2727
by a single default context object instance generated by `React.createContext()`, called `ReactReduxContext`.
2828

29-
React Redux's `<Provider>` component uses `<ReactReduxContext.Provider>` to put the Redux store and the current store
30-
state into context, and `connect` uses `useContext(ReactReduxContext)` to read those values and handle updates.
29+
React Redux's `<Provider>` component uses `<ReactReduxContext.Provider>` to put the Redux store and internal subscription wrappers into context. `useSelector`, `useDispatch`, and `connect` call `useContext(ReactReduxContext)` to read those values and handle updates.
3130

3231
## Using the `useStore` Hook
3332

0 commit comments

Comments
 (0)