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 +1,14 @@
export { default } from "./page"
import { Suspense } from "react"
import Loading from "./loading"
import Page from "./page"
import { PageArgs } from "@/types/params"
export default function Default(props: PageArgs<{}, URLSearchParams>) {
return (
<Suspense fallback={<Loading />}>
<Page {...props} />
</Suspense>
)
}