Skip to content

Commit

Permalink
Merge pull request #1872 from TkDodo/feature/context-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson authored Feb 8, 2022
2 parents 2e18eae + 5c784ef commit 4d38402
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/using-react-redux/accessing-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ The following runtime error occurs when React Redux does not find a store in the
>
> 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.
### Custom Context and the hooks API

To access the custom context via the hooks API, you can create custom hooks via the [hook creator functions](../api/hooks.md#custom-context).

## Multiple Stores

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

0 comments on commit 4d38402

Please sign in to comment.