From 693d4717a0089aec36ea6c592208f24a9ac0c64e Mon Sep 17 00:00:00 2001 From: Jack Pope Date: Fri, 13 Dec 2024 15:55:40 -0500 Subject: [PATCH] Revert "Fix unstable_useContextWithBailout incorrect dispatcher assignment (#30673)" This reverts commit d48603a52564675ce02152fff245e38b6816da47. --- 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 518bc6ae24382..64ddc88fd6ab2 100644 --- a/packages/react-reconciler/src/ReactFiberHooks.js +++ b/packages/react-reconciler/src/ReactFiberHooks.js @@ -5115,7 +5115,7 @@ if (__DEV__) { }; } if (enableContextProfiling) { - (InvalidNestedHooksDispatcherOnMountInDEV: Dispatcher).unstable_useContextWithBailout = + (HooksDispatcherOnUpdateInDEV: Dispatcher).unstable_useContextWithBailout = function ( context: ReactContext, select: (T => Array) | null,