From 596ed93e0e1a5dfeb036e64f7a5f9441d0cb71b2 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Tue, 2 Nov 2021 21:54:25 -0300 Subject: [PATCH] Hide children nodes seems to performe better on large traces --- src/transaction/TraceItem.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/transaction/TraceItem.tsx b/src/transaction/TraceItem.tsx index 14e2afc..d97b63f 100644 --- a/src/transaction/TraceItem.tsx +++ b/src/transaction/TraceItem.tsx @@ -78,8 +78,12 @@ const TraceItem: React.FC = ({ - {expanded && t.children && ( -
+ {t.children && ( +
{t.children.map((tc, i, a) => (