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