diff --git a/packages/react-reconciler/src/ReactFiberHooks.js b/packages/react-reconciler/src/ReactFiberHooks.js index 75acffc1b9a11..ecb707608ebc4 100644 --- a/packages/react-reconciler/src/ReactFiberHooks.js +++ b/packages/react-reconciler/src/ReactFiberHooks.js @@ -3489,8 +3489,8 @@ export const ContextOnlyDispatcher: Dispatcher = { useContext: throwInvalidHookError, useEffect: throwInvalidHookError, useImperativeHandle: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, useLayoutEffect: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, useMemo: throwInvalidHookError, useReducer: throwInvalidHookError, useRef: throwInvalidHookError, diff --git a/packages/react-reconciler/src/ReactFiberHostContext.js b/packages/react-reconciler/src/ReactFiberHostContext.js index 3ba99edb239ad..0b64be766a95b 100644 --- a/packages/react-reconciler/src/ReactFiberHostContext.js +++ b/packages/react-reconciler/src/ReactFiberHostContext.js @@ -46,11 +46,11 @@ const hostTransitionProviderCursor: StackCursor = // inside useHostTransitionStatus. export const HostTransitionContext: ReactContext = { $$typeof: REACT_CONTEXT_TYPE, + Provider: (null: any), + Consumer: (null: any), _currentValue: null, _currentValue2: null, _threadCount: 0, - Provider: (null: any), - Consumer: (null: any), }; function requiredContext(c: Value | null): Value {