fix: make parallel routes not render blocking

fix: add loading to parallel routes
This commit is contained in:
Joakim Jäderberg
2024-11-18 08:44:49 +01:00
parent 7714a48fb4
commit 9c7ac78e14
31 changed files with 50 additions and 38 deletions

View File

@@ -0,0 +1 @@
export { default } from "../loading"

View File

@@ -1 +0,0 @@
export { default } from "../../page"

View File

@@ -1 +0,0 @@
export { default } from "./page"

View File

@@ -0,0 +1,3 @@
export default function Loading() {
return null
}

View File

@@ -1 +0,0 @@
export { default } from "../../page"

View File

@@ -1,5 +1,3 @@
import { Suspense } from "react"
import { env } from "@/env/server"
import SitewideAlert, { preload } from "@/components/SitewideAlert"
@@ -15,9 +13,5 @@ export default function SitewideAlertPage({ params }: PageArgs<LangParams>) {
setLang(params.lang)
preload()
return (
<Suspense>
<SitewideAlert />
</Suspense>
)
return <SitewideAlert />
}