fix: add suspense boundary for destination overview page map

This commit is contained in:
Michael Zetterberg
2025-03-31 07:35:54 +02:00
parent effcc29f3a
commit 8e86bbb4b9

View File

@@ -1,3 +1,5 @@
import { Suspense } from "react"
import { getDestinationOverviewPage } from "@/lib/trpc/memoizedRequests"
import Blocks from "@/components/Blocks"
@@ -21,7 +23,9 @@ export default async function DestinationOverviewPage() {
return (
<>
<div className={styles.mapContainer}>
<OverviewMapContainer />
<Suspense fallback={<SkeletonShimmer width={"100%"} height={"100%"} />}>
<OverviewMapContainer />
</Suspense>
</div>
<main className={styles.main}>
<div className={styles.blocks}>