canina/frontend/application/app/blog/error.tsx
parsa aghaei 7b89e141c5
All checks were successful
Deploy Canina / deploy (push) Successful in 1m43s
feat(core): polish codebase, enhance error handling, security hardening, rate limiting, and a11y compliance
2026-08-25 11:33:37 +03:30

18 lines
382 B
TypeScript

"use client";
import React, { useEffect } from "react";
import { ServerErrorPage } from "../../components/ErrorPages";
export default function BlogErrorBoundary({
error,
reset,
}: {
error: Error & { digest?: string };
reset: () => void;
}) {
useEffect(() => {
console.error("Blog Route Error:", error);
}, [error]);
return <ServerErrorPage onRetry={reset} />;
}