From 5c784efe88f7a5338e30447e7a2657dac38e64cd Mon Sep 17 00:00:00 2001 From: Dominik Dorfmeister Date: Tue, 8 Feb 2022 20:27:50 +0100 Subject: [PATCH] docs: cross-reference the custom-context of the hooks api with the accessing-store page --- docs/using-react-redux/accessing-store.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/using-react-redux/accessing-store.md b/docs/using-react-redux/accessing-store.md index f53a8a63c..970819036 100644 --- a/docs/using-react-redux/accessing-store.md +++ b/docs/using-react-redux/accessing-store.md @@ -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 ``, or pass a custom React context provider to `` 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).