Skip to content

Commit

Permalink
feat: add Suspense for ProfileTile
Browse files Browse the repository at this point in the history
  • Loading branch information
simonknittel committed Jan 26, 2025
1 parent bdf33e0 commit aaa5251
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/app/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { authenticatePage } from "@/auth/server";
import { ProfileTile } from "@/citizen/components/ProfileTile";
import { Hero } from "@/common/components/Hero";
import { SkeletonTile } from "@/common/components/SkeletonTile";
import { UwuHero } from "@/common/components/UwuHero";
import { getUnleashFlag } from "@/common/utils/getUnleashFlag";
import {
Expand Down Expand Up @@ -55,7 +56,9 @@ export default async function Page({ searchParams }: Props) {
<section className="flex flex-col gap-4 xl:w-[400px] flex-none">
<h2 className="font-bold text-xl self-start">Spynet</h2>
{showSpynetSearchTile && <SpynetSearchTile />}
<ProfileTile />
<Suspense fallback={<SkeletonTile />}>
<ProfileTile />
</Suspense>
</section>
</div>

Expand Down

0 comments on commit aaa5251

Please sign in to comment.