Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiberHostContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ const hostTransitionProviderCursor: StackCursor<Fiber | null> =
// inside useHostTransitionStatus.
export const HostTransitionContext: ReactContext<TransitionStatus | null> = {
$$typeof: REACT_CONTEXT_TYPE,
Provider: (null: any),
Consumer: (null: any),
_currentValue: null,
_currentValue2: null,
_threadCount: 0,
Provider: (null: any),
Consumer: (null: any),
};

function requiredContext<Value>(c: Value | null): Value {
Expand Down

0 comments on commit ce4245e

Please sign in to comment.