@samitouri / QOS-React / commits / 0ad0fac1dc

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); ```

Jack Pope committed Aug 14, 2024 at 11:04 UTC 0ad0fac1dc11db8d5a6831987fb0324cd6d59498
1 file changed +1 -1
packages/react-reconciler/src/ReactFiberHooks.js
+1 -1
@@ -4622,7 +4622,7 @@ if (__DEV__) {
4622 };
4623 }
4624 if (enableContextProfiling) {
4625 - (HooksDispatcherOnUpdateInDEV: Dispatcher).unstable_useContextWithBailout =
4625 + (HooksDispatcherOnRerenderInDEV: Dispatcher).unstable_useContextWithBailout =
4626 function <T>(
4627 context: ReactContext<T>,
4628 select: (T => Array<mixed>) | null,