Skip to content

Commit 4d38402

Browse files
authored
Merge pull request #1872 from TkDodo/feature/context-docs
2 parents 2e18eae + 5c784ef commit 4d38402

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ The following runtime error occurs when React Redux does not find a store in the
7575
>
7676
> Could not find "store" in the context of "Connect(MyComponent)". Either wrap the root component in a `<Provider>`, or pass a custom React context provider to `<Provider>` and the corresponding React context consumer to Connect(Todo) in connect options.
7777
78+
### Custom Context and the hooks API
79+
80+
To access the custom context via the hooks API, you can create custom hooks via the [hook creator functions](../api/hooks.md#custom-context).
81+
7882
## Multiple Stores
7983

8084
[Redux was designed to use a single store](https://redux.js.org/api/store#a-note-for-flux-users).

0 commit comments

Comments
 (0)