We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c254b6 commit 7558ffeCopy full SHA for 7558ffe
packages/react-reconciler/src/ReactFiberHooks.js
@@ -5241,8 +5241,8 @@ if (__DEV__) {
5241
return mountEvent(callback);
5242
};
5243
}
5244
- if (InvalidNestedHooksDispatcherOnMountInDEV) {
5245
- (HooksDispatcherOnRerenderInDEV: Dispatcher).useResourceEffect =
+ if (enableUseResourceEffectHook) {
+ (InvalidNestedHooksDispatcherOnMountInDEV: Dispatcher).useResourceEffect =
5246
function useResourceEffect(
5247
create: () => mixed,
5248
createDeps: Array<mixed> | void | null,
0 commit comments