From d48603a52564675ce02152fff245e38b6816da47 Mon Sep 17 00:00:00 2001 From: Jack Pope Date: Tue, 13 Aug 2024 11:31:44 -0400 Subject: [PATCH] Fix unstable_useContextWithBailout incorrect dispatcher assignment (#30673) Fixing a mistaken copy from another dispatcher property assignment --- packages/react-reconciler/src/ReactFiberHooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-reconciler/src/ReactFiberHooks.js b/packages/react-reconciler/src/ReactFiberHooks.js index 3ba251b620713..6e9e9b2c86ede 100644 --- a/packages/react-reconciler/src/ReactFiberHooks.js +++ b/packages/react-reconciler/src/ReactFiberHooks.js @@ -4839,7 +4839,7 @@ if (__DEV__) { }; } if (enableContextProfiling) { - (HooksDispatcherOnUpdateInDEV: Dispatcher).unstable_useContextWithBailout = + (InvalidNestedHooksDispatcherOnMountInDEV: Dispatcher).unstable_useContextWithBailout = function ( context: ReactContext, select: (T => Array) | null,