fix: add Suspense boundary to marketplace sell page

Another useSearchParams() usage without Suspense boundary.
This commit is contained in:
g-but committed 2026-02-12 14:54:55 +01:00
1 parent 2241b2b1b8
commit 2c612fd17d
1 file changed
+14 -2
+14 -2
View File
@@ -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>
)
}