fix(devtools): reduce memory usage and defer connection (#24496)

This commit is contained in:
Sandy Tao
2026-04-22 15:21:58 -07:00
committed by GitHub
parent 2e12c34009
commit 9c0a6864da
5 changed files with 14 additions and 83 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ export class DevTools extends EventEmitter {
chunks: payload.chunk ? [payload.chunk] : undefined,
} as NetworkLog;
this.logs.push(entry);
if (this.logs.length > 2000) this.logs.shift();
if (this.logs.length > 10) this.logs.shift();
this.emit('update', entry);
}
}