Remix v2 Error Boundary Review

•
64
•

Reviews Remix v2 route modules for correct error handling, unified ErrorBoundary implementation, and migration from v1 patterns.

This skill provides specialized code review for Remix v2 applications, ensuring robust error handling through the framework's unified ErrorBoundary model. It validates the implementation of the useRouteError hook, enforces proper type narrowing with isRouteErrorResponse, and audits the critical 'throw vs return' logic in loaders and actions. By identifying deprecated v1 holdovers like CatchBoundary and verifying that root boundaries correctly include Meta, Links, and Scripts tags, this skill helps developers maintain resilient, framework-compliant codebases that gracefully handle both server and client-side failures.

주요 기능

01Verifies root boundary scaffolding for essential Meta, Links, and Scripts tags.
02Ensures type-safe error narrowing using isRouteErrorResponse and instanceof Error.
03Validates unified ErrorBoundary exports and prop signatures for v2 compliance.
04Audits loader/action logic to ensure error responses are thrown rather than returned.
05Identifies deprecated v1 patterns including CatchBoundary, useCatch, and future flags.
0664 GitHub stars

사용 사례

01Migrating Remix v1 codebases to the unified v2 error-handling architecture.
02Ensuring production-ready observability by validating handleError exports in entry.server.tsx.
03Automating PR reviews for route modules to prevent 'white screen' runtime errors.