Skip to content

Commit 64476e0

Browse files
(updated) allComponentStates obtains componentStates from last snapshot, and accomodates updated traverse function
1 parent 4f941f2 commit 64476e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/components/PerformanceVisx.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const PerformanceVisx = (props: BarStackProps) => {
124124
// filter and structure incoming data for VISX
125125
const data = getPerfMetrics(snapshots, getSnapshotIds(hierarchy));
126126
const keys = Object.keys(data[0]).filter(d => d !== 'snapshotId');
127-
const allComponentStates = traverse(snapshots[0]);
127+
const allComponentStates = traverse(snapshots[-1], 'getComponentType');
128128
const allComponentRtids = traverse(snapshots[-1], 'getRtids');
129129

130130
// create array of total render times for each snapshot

0 commit comments

Comments
 (0)