Skip to content

Commit 7b4b6f4

Browse files
committed
Include some smaller rects
They may up being larger when zoomed into the rect view
1 parent 1ce0a99 commit 7b4b6f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseRects.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ function SuspenseRects({
178178
// TODO: This should probably be memoized based on if any changes to the rtree has been made.
179179
const titleBox: null | Rect =
180180
rects === null ? null : findTitleBox(store._rtree, rects, parentRects);
181-
182181
const nextRects =
183182
rects === null || rects.length === 0
184183
? parentRects
@@ -355,7 +354,7 @@ function findTitleBox(
355354
): null | Rect {
356355
for (let i = 0; i < rects.length; i++) {
357356
const rect = rects[i];
358-
if (rect.width < 50 || rect.height < 10) {
357+
if (rect.width < 20 || rect.height < 10) {
359358
// Skip small rects. They're likely not able to be contain anything useful anyway.
360359
continue;
361360
}

0 commit comments

Comments
 (0)