From d292a0c65d8fa4c22ae921dc5d6ed33a09b987fe Mon Sep 17 00:00:00 2001 From: Barbara Honhoff Date: Thu, 5 Oct 2023 14:14:56 +0200 Subject: [PATCH] Add Suspense around slow component --- .../src/app/[locale]/communities/community-card.tsx | 4 +++- apps/researcher/src/lib/community.ts | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/researcher/src/app/[locale]/communities/community-card.tsx b/apps/researcher/src/app/[locale]/communities/community-card.tsx index 558da4bc7..fe0185651 100644 --- a/apps/researcher/src/app/[locale]/communities/community-card.tsx +++ b/apps/researcher/src/app/[locale]/communities/community-card.tsx @@ -99,7 +99,9 @@ export default function CommunityCard({community, locale}: CommunityCardProps) {
- + + +
diff --git a/apps/researcher/src/lib/community.ts b/apps/researcher/src/lib/community.ts index 4e0c0162e..d5e4ab5c9 100644 --- a/apps/researcher/src/lib/community.ts +++ b/apps/researcher/src/lib/community.ts @@ -70,6 +70,8 @@ export async function getCommunities({ includeMembersCount: true, }); + console.log(communities); + return sort(communities, sortBy); }