mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 07:37:04 +01:00
fix: add Suspense boundary to marketplace sell page
Another useSearchParams() usage without Suspense boundary.
This commit is contained in:
1 parent
2241b2b1b8
commit
2c612fd17d
1 file changed
+14
-2
@@ -1,6 +1,6 @@
|
||||
'use client'
|
||||
|
||||
import { useState, useRef, useEffect } from 'react'
|
||||
import { useState, useRef, useEffect, Suspense } from 'react'
|
||||
import { useSession } from 'next-auth/react'
|
||||
import { useRouter, useSearchParams } from 'next/navigation'
|
||||
import Link from 'next/link'
|
||||
@@ -29,7 +29,7 @@ import { ZUSTAND_OPTIONS } from '@/config/erfassung/conditions'
|
||||
|
||||
type Step = 'form' | 'preview'
|
||||
|
||||
export default function SellPage() {
|
||||
function SellPageContent() {
|
||||
const { data: session, status } = useSession()
|
||||
const router = useRouter()
|
||||
const searchParams = useSearchParams()
|
||||
@@ -610,3 +610,15 @@ export default function SellPage() {
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default function SellPage() {
|
||||
return (
|
||||
<Suspense fallback={
|
||||
<div className="flex items-center justify-center min-h-screen">
|
||||
<Loader2 className="w-8 h-8 text-green-600 animate-spin" />
|
||||
</div>
|
||||
}>
|
||||
<SellPageContent />
|
||||
</Suspense>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user