From 2378392f9547869acc86efd791652a7fd983548f Mon Sep 17 00:00:00 2001 From: AutonetSellCar Deploy Date: Sat, 10 Jan 2026 01:40:56 +0900 Subject: [PATCH] fix: Wrap useSearchParams in Suspense boundary for board page Co-Authored-By: Claude Opus 4.5 --- frontend/src/app/board/page.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/board/page.tsx b/frontend/src/app/board/page.tsx index 478de74..1727296 100644 --- a/frontend/src/app/board/page.tsx +++ b/frontend/src/app/board/page.tsx @@ -1,6 +1,6 @@ 'use client'; -import { useState, useEffect } from 'react'; +import { useState, useEffect, Suspense } from 'react'; import { useRouter, useSearchParams } from 'next/navigation'; import Link from 'next/link'; import { boardApi, BoardPostListItem, BoardCategory, BoardPostListResponse, BoardCategoryListResponse } from '@/lib/api'; @@ -8,7 +8,7 @@ import { useAuthStore } from '@/lib/store'; import { useTranslate } from '@/lib/useTranslate'; import { useLanguageStore } from '@/lib/i18n'; -export default function BoardPage() { +function BoardPageContent() { const router = useRouter(); const searchParams = useSearchParams(); const { user, token } = useAuthStore(); @@ -294,3 +294,15 @@ export default function BoardPage() { ); } + +export default function BoardPage() { + return ( + +
+ + }> + +
+ ); +}