Skip to content

Commit 0ad0fac

Browse files
authored
Fix unstable_useContextWithBailout dispatcher assignment (#30692)
One more copy pasta fix Assignments are unique now ``` % cat packages/react-reconciler/src/ReactFiberHooks.js | grep .unstable_useContextWithBailout function unstable_useContextWithBailout<T>( (ContextOnlyDispatcher: Dispatcher).unstable_useContextWithBailout = (HooksDispatcherOnMount: Dispatcher).unstable_useContextWithBailout = unstable_useContextWithBailout; (HooksDispatcherOnUpdate: Dispatcher).unstable_useContextWithBailout = unstable_useContextWithBailout; (HooksDispatcherOnRerender: Dispatcher).unstable_useContextWithBailout = unstable_useContextWithBailout; (HooksDispatcherOnMountInDEV: Dispatcher).unstable_useContextWithBailout = return unstable_useContextWithBailout(context, select); (HooksDispatcherOnMountWithHookTypesInDEV: Dispatcher).unstable_useContextWithBailout = return unstable_useContextWithBailout(context, select); (HooksDispatcherOnUpdateInDEV: Dispatcher).unstable_useContextWithBailout = return unstable_useContextWithBailout(context, select); (HooksDispatcherOnRerenderInDEV: Dispatcher).unstable_useContextWithBailout = return unstable_useContextWithBailout(context, select); (InvalidNestedHooksDispatcherOnMountInDEV: Dispatcher).unstable_useContextWithBailout = return unstable_useContextWithBailout(context, select); (InvalidNestedHooksDispatcherOnUpdateInDEV: Dispatcher).unstable_useContextWithBailout = return unstable_useContextWithBailout(context, select); (InvalidNestedHooksDispatcherOnRerenderInDEV: Dispatcher).unstable_useContextWithBailout = return unstable_useContextWithBailout(context, select); ```
1 parent fbfe08d commit 0ad0fac

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
@@ -4622,7 +4622,7 @@ if (__DEV__) {
46224622
};
46234623
}
46244624
if (enableContextProfiling) {
4625-
(HooksDispatcherOnUpdateInDEV: Dispatcher).unstable_useContextWithBailout =
4625+
(HooksDispatcherOnRerenderInDEV: Dispatcher).unstable_useContextWithBailout =
46264626
function <T>(
46274627
context: ReactContext<T>,
46284628
select: (T => Array<mixed>) | null,

0 commit comments

Comments
 (0)