Skip to content

Commit 2d2ac0a

Browse files
authored
fix(issue-details): Update grouping info loading (#87996)
this pr adds a loading state to the grouping info section so the info doesn't change from Nothing to the correct grouping info
1 parent 4c70163 commit 2d2ac0a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

static/app/components/events/groupingInfo/groupingSummary.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {useEventGroupingInfo} from 'sentry/components/events/groupingInfo/useEventGroupingInfo';
2+
import Placeholder from 'sentry/components/placeholder';
23
import {t} from 'sentry/locale';
34
import type {Event} from 'sentry/types/event';
45
import type {Group} from 'sentry/types/group';
@@ -12,7 +13,7 @@ export function GroupInfoSummary({
1213
group: Group | undefined;
1314
projectSlug: string;
1415
}) {
15-
const {groupInfo} = useEventGroupingInfo({
16+
const {groupInfo, isPending, hasPerformanceGrouping} = useEventGroupingInfo({
1617
event,
1718
group,
1819
projectSlug,
@@ -26,6 +27,10 @@ export function GroupInfoSummary({
2627
.join(', ')
2728
: t('nothing');
2829

30+
if (isPending && !hasPerformanceGrouping) {
31+
return <Placeholder height="20px" style={{marginBottom: '20px'}} />;
32+
}
33+
2934
return (
3035
<p data-test-id="loaded-grouping-info">
3136
<strong>{t('Grouped by:')}</strong> {groupedBy}

0 commit comments

Comments
 (0)