Skip to content

Commit b382322

Browse files
♻️ new isLoading
1 parent 8f160ef commit b382322

File tree

1 file changed

+4
-2
lines changed
  • static/app/views/replays/detail/memoryPanel

1 file changed

+4
-2
lines changed

static/app/views/replays/detail/memoryPanel/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ export default function MemoryPanel() {
1717

1818
const memoryFrames = replay?.getMemoryFrames();
1919

20-
const {data: frameToCount} = useCountDomNodes({replay});
20+
const {data: frameToCount, isLoading: isDomNodeDataLoaading} = useCountDomNodes({
21+
replay,
22+
});
2123
const domNodeData = useMemo(
2224
() => Array.from(frameToCount?.values() || []),
2325
[frameToCount]
@@ -50,7 +52,7 @@ export default function MemoryPanel() {
5052
);
5153

5254
const domNodesChart =
53-
!replay || isFetching ? (
55+
!replay || isDomNodeDataLoaading ? (
5456
<Placeholder height="100%" />
5557
) : (
5658
<Fragment>

0 commit comments

Comments
 (0)