Skip to content

Commit

Permalink
Fix InvalidNestedHooksDispatcherOnMountInDEV unstable_useContextWithB…
Browse files Browse the repository at this point in the history
…ailout assignment
  • Loading branch information
Jack Pope committed Aug 13, 2024
1 parent 23830ea commit 9dade38
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 9dade38

Please sign in to comment.