Loading.tsx for webviews and suspense for footer

This commit is contained in:
Linus Flood
2024-10-25 15:02:28 +02:00
parent 69566c5cdf
commit 4a8d38912f
2 changed files with 13 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
import LoadingSpinner from "@/components/LoadingSpinner"
export default function Loading() {
return <LoadingSpinner />
}

View File

@@ -1,3 +1,5 @@
import { Suspense } from "react"
import { getFooter, getLanguageSwitcher } from "@/lib/trpc/memoizedRequests"
import FooterDetails from "./Details"
@@ -10,9 +12,11 @@ export function preload() {
export default function Footer() {
return (
<footer>
<FooterNavigation />
<FooterDetails />
</footer>
<Suspense>
<footer>
<FooterNavigation />
<FooterDetails />
</footer>
</Suspense>
)
}