File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,7 @@ export default async function ReferencesPage(props: PageProps) {
1616 const params = await props . params
1717 const { slug } = params
1818
19- return (
20- < Suspense fallback = { < Loading /> } >
21- < div className = "animate animate-fadeIn" >
22- < ReferenceMDX slug = { slug } />
23- </ div >
24- </ Suspense >
25- )
19+ return < ReferenceMDX slug = { slug } />
2620}
2721
2822export async function generateMetadata ( {
Original file line number Diff line number Diff line change 11"use client"
22
3- import { MDXClientLazy , SerializeResult } from "next-mdx-remote-client/csr"
3+ import { MDXClient , SerializeResult } from "next-mdx-remote-client/csr"
44import MDXComponents from "../MDXComponents"
55import { Loading , swrFetcher } from "docs-ui"
66import useSWR from "swr"
77import { config } from "../../config"
88import { notFound } from "next/navigation"
9+ import { Suspense } from "react"
910
1011type ReferenceMDXProps = {
1112 slug : string [ ]
@@ -29,5 +30,11 @@ export const ReferenceMDX = ({ slug }: ReferenceMDXProps) => {
2930 return notFound ( )
3031 }
3132
32- return < MDXClientLazy { ...serializedResult } components = { MDXComponents } />
33+ return (
34+ < Suspense fallback = { < Loading /> } >
35+ < div className = "animate animate-fadeIn" >
36+ < MDXClient { ...serializedResult } components = { MDXComponents } />
37+ </ div >
38+ </ Suspense >
39+ )
3340}
You can’t perform that action at this time.
0 commit comments