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

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

View File

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

View File

@@ -0,0 +1,11 @@
import { env } from "@/env/server"
import CurrentLoadingSpinner from "@/components/Current/LoadingSpinner"
import LoadingSpinner from "@/components/LoadingSpinner"
export default function LoadingFooter() {
if (env.HIDE_FOR_NEXT_RELEASE) {
return <CurrentLoadingSpinner />
}
return <LoadingSpinner />
}