fix: make parallel routes not render blocking
fix: add loading to parallel routes
This commit is contained in:
1
app/[lang]/(live)/@bookingwidget/[...path]/loading.tsx
Normal file
1
app/[lang]/(live)/@bookingwidget/[...path]/loading.tsx
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from "../loading"
|
||||
@@ -1 +0,0 @@
|
||||
export { default } from "../../page"
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export { default } from "../../page"
|
||||
@@ -1 +0,0 @@
|
||||
export { default } from "../page"
|
||||
@@ -1 +0,0 @@
|
||||
export { default } from "../../page"
|
||||
Reference in New Issue
Block a user