We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4fa957 commit b4b5894Copy full SHA for b4b5894
packages/node_modules/overmind-react/src/index.ts
@@ -92,6 +92,12 @@ export const createHook = <Config extends IConfiguration>(
92
Config
93
>
94
95
+ if (!overmind) {
96
+ throw new Error(
97
+ 'You are not exposing Overmind on the React context. Please make sure you use the Provider, as shown in the React guide'
98
+ )
99
+ }
100
+
101
if ((overmind as any).mode.mode === MODE_SSR) {
102
return {
103
state: overmind.state,
0 commit comments