Skip to content

Commit 8c83fff

Browse files
fix: Next.js build fail by wrapping with Suspense boundary
1 parent 0f192e5 commit 8c83fff

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

examples/ui-playground/src/app/playground/shadcn/page-sidebar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use client'
12
import React, { useEffect } from 'react'
23

34
import { MagnifyingGlassIcon } from '@phosphor-icons/react'

examples/ui-playground/src/app/playground/shadcn/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ export default function ComboboxPage() {
109109
</Typography>
110110
<ToastSection />
111111
</div>
112-
<PageSidebar />
112+
<React.Suspense fallback={null}>
113+
<PageSidebar />
114+
</React.Suspense>
113115
</div>
114116
)
115117
}

0 commit comments

Comments
 (0)