Skip to content

Commit d48603a

Browse files
authored
Fix unstable_useContextWithBailout incorrect dispatcher assignment (#30673)
Fixing a mistaken copy from another dispatcher property assignment
1 parent 23830ea commit d48603a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-reconciler/src/ReactFiberHooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4839,7 +4839,7 @@ if (__DEV__) {
48394839
};
48404840
}
48414841
if (enableContextProfiling) {
4842-
(HooksDispatcherOnUpdateInDEV: Dispatcher).unstable_useContextWithBailout =
4842+
(InvalidNestedHooksDispatcherOnMountInDEV: Dispatcher).unstable_useContextWithBailout =
48434843
function <T>(
48444844
context: ReactContext<T>,
48454845
select: (T => Array<mixed>) | null,

0 commit comments

Comments
 (0)