Fix unstable_useContextWithBailout incorrect dispatcher assignment (#30673)

Fixing a mistaken copy from another dispatcher property assignment
This commit is contained in:
Jack Pope
2024-08-13 11:31:44 -04:00
committed by GitHub
parent 23830ea2a1
commit d48603a525

View File

@@ -4839,7 +4839,7 @@ if (__DEV__) {
};
}
if (enableContextProfiling) {
(HooksDispatcherOnUpdateInDEV: Dispatcher).unstable_useContextWithBailout =
(InvalidNestedHooksDispatcherOnMountInDEV: Dispatcher).unstable_useContextWithBailout =
function <T>(
context: ReactContext<T>,
select: (T => Array<mixed>) | null,