Skip to content

Commit

Permalink
Fix unstable_useContextWithBailout incorrect dispatcher assignment (f…
Browse files Browse the repository at this point in the history
…acebook#30673)

Fixing a mistaken copy from another dispatcher property assignment
  • Loading branch information
jackpope authored Aug 13, 2024
1 parent 23830ea commit d48603a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d48603a

Please sign in to comment.