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 fedfbae commit a40a191Copy full SHA for a40a191
packages/node_modules/overmind-react/src/index.ts
@@ -40,7 +40,9 @@ export const createHook = <A extends Overmind<Configuration>>(overmind: A) => {
40
ReactCurrentOwner,
41
} = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
42
const useCurrentComponent = () => {
43
- return ReactCurrentOwner.current.elementType
+ return ReactCurrentOwner.current
44
+ ? ReactCurrentOwner.current.elementType
45
+ : {}
46
}
47
48
return () => {
0 commit comments