Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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