Skip to content

Commit 844eb03

Browse files
author
Brian Vaughn
committed
Test empty commit to re-open PR
1 parent c62986c commit 844eb03

File tree

13 files changed

+1055
-1817
lines changed

13 files changed

+1055
-1817
lines changed

packages/react-devtools-scheduling-profiler/src/EventTooltip.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ const TooltipReactMeasure = ({
249249
return null;
250250
}
251251

252-
const {batchUID, duration, timestamp, lanes} = measure;
252+
const {batchUID, duration, timestamp, lanes, laneLabels} = measure;
253253
const [startTime, stopTime] = getBatchRange(batchUID, data);
254254

255255
return (
@@ -265,7 +265,11 @@ const TooltipReactMeasure = ({
265265
<div className={styles.DetailsGridLabel}>
266266
Lane{lanes.length === 1 ? '' : 's'}:
267267
</div>
268-
<div>{lanes.join(', ')}</div>
268+
<div>
269+
{laneLabels.length > 0
270+
? `${laneLabels.join(', ')} (${lanes.join(', ')})`
271+
: lanes.join(', ')}
272+
</div>
269273
</div>
270274
</div>
271275
);

packages/react-devtools-scheduling-profiler/src/constants.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ export {
1111
COMFORTABLE_LINE_HEIGHT,
1212
COMPACT_LINE_HEIGHT,
1313
} from 'react-devtools-shared/src/constants.js';
14+
import {TotalLanes} from 'react-reconciler/src/ReactFiberLane.new';
1415

15-
export const REACT_TOTAL_NUM_LANES = 31;
16+
export const REACT_TOTAL_NUM_LANES = TotalLanes;

0 commit comments

Comments
 (0)