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 12d95b6 commit 32cdbdaCopy full SHA for 32cdbda
packages/react-reconciler/src/ReactStrictModeWarnings.js
@@ -303,16 +303,16 @@ if (__DEV__) {
303
}
304
const type = fiber.type;
305
306
- // Update legacy context counts
307
- const warningCount = legacyContextCounts.get(type) || 0;
308
- // Increase warning count by 1
309
- legacyContextCounts.set(type, warningCount + 1);
310
-
311
// Dedup strategy: Warn once per component
312
if (didWarnAboutLegacyContext.has(type)) {
313
return;
314
315
+ // Update legacy context counts
+ const warningCount = legacyContextCounts.get(type) || 0;
+ // Increase warning count by 1
+ legacyContextCounts.set(type, warningCount + 1);
+
316
let warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
317
318
if (
0 commit comments