Skip to content

fix(web): TryUploadPage render-time side effects + Suspense 경계 누락 #134

@thxforall

Description

@thxforall

문제

코드 리뷰에서 발견된 CRITICAL 이슈 2건.

C1: render-time side effects

packages/web/app/request/try/page.tsx 약 100-103행에서 toast.error()router.push("/")가 render body에서 직접 호출됨. React strict mode에서 이중 실행 발생.

Fix: useEffect 안으로 이동

C2: useSearchParams() Suspense 경계 누락

Next.js 16 App Router에서 useSearchParams()는 Suspense 경계가 필요함. 없으면 전체 라우트가 static rendering에서 제외됨.

Fix: 페이지 레벨 Suspense 래핑

관련 파일

  • packages/web/app/request/try/page.tsx

Metadata

Metadata

Assignees

Labels

priority: high아키텍처 안정화 단계

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions