mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
- Set `error.name` just like Webpack does - Add some tests <img width="1854" height="451" alt="Bildschirmfoto 2025-11-28 um 10 44 06" src="https://github.com/user-attachments/assets/8cadd60e-2a7f-4715-9c39-66453fe400f4" /> <img width="1865" height="564" alt="Bildschirmfoto 2025-11-27 um 16 52 34" src="https://github.com/user-attachments/assets/959bdb52-83a5-4b73-9d5f-b727f8715a6e" />
17 lines
298 B
TypeScript
17 lines
298 B
TypeScript
'use client'
|
|
|
|
import dynamic from 'next/dynamic'
|
|
import { Suspense } from 'react'
|
|
|
|
const Async = dynamic(() => import('./async'), { ssr: false })
|
|
|
|
export default function Page() {
|
|
return (
|
|
<>
|
|
<Suspense fallback={<div>Loading...</div>}>
|
|
<Async />
|
|
</Suspense>
|
|
</>
|
|
)
|
|
}
|