Defensive coding to reduce the risk of Maximum update depth errors (#20940)

This commit is contained in:
Jacob Richman
2026-03-03 22:32:05 -08:00
committed by GitHub
parent 7e06559db2
commit 1017b78157
4 changed files with 122 additions and 25 deletions
+4
View File
@@ -60,6 +60,10 @@ beforeEach(() => {
? stackLines.slice(lastReactFrameIndex + 1).join('\n')
: stackLines.slice(1).join('\n');
if (relevantStack.includes('OverflowContext.tsx')) {
return;
}
actWarnings.push({
message: format(...args),
stack: relevantStack,