Skip to content

Commit 7558ffe

Browse files
authored
[crud] Fix copy paste typo (#31588)
Happens to the best of us.
1 parent 7c254b6 commit 7558ffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-reconciler/src/ReactFiberHooks.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5241,8 +5241,8 @@ if (__DEV__) {
52415241
return mountEvent(callback);
52425242
};
52435243
}
5244-
if (InvalidNestedHooksDispatcherOnMountInDEV) {
5245-
(HooksDispatcherOnRerenderInDEV: Dispatcher).useResourceEffect =
5244+
if (enableUseResourceEffectHook) {
5245+
(InvalidNestedHooksDispatcherOnMountInDEV: Dispatcher).useResourceEffect =
52465246
function useResourceEffect(
52475247
create: () => mixed,
52485248
createDeps: Array<mixed> | void | null,

0 commit comments

Comments
 (0)