Fix unstable_useContextWithBailout incorrect dispatcher assignment (#30673)
Fixing a mistaken copy from another dispatcher property assignment
Jack Pope committed
Aug 13, 2024 at 11:31 UTC
d48603a52564675ce02152fff245e38b6816da47
1 file changed
+1
-1
packages/react-reconciler/src/ReactFiberHooks.js
+1
-1
@@ -4839,7 +4839,7 @@ if (__DEV__) {
4839
};
4840
}
4841
if (enableContextProfiling) {
4842
- (HooksDispatcherOnUpdateInDEV: Dispatcher).unstable_useContextWithBailout =
4842
+ (InvalidNestedHooksDispatcherOnMountInDEV: Dispatcher).unstable_useContextWithBailout =
4843
function <T>(
4844
context: ReactContext<T>,
4845
select: (T => Array<mixed>) | null,