Download frontend/src/app/error.tsx from new-arc/vector: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/spaces/new-arc/vector/resolve/main/frontend/src/app/error.tsx
- Command line
-
hf download hf://spaces/new-arc/vector/frontend/src/app/error.tsx
-
curl -L -o error.tsx https://huggingface.co/spaces/new-arc/vector/resolve/main/frontend/src/app/error.tsx
497 Bytes
| "use client"; | |
| import { useEffect } from "react"; | |
| import posthog from "posthog-js"; | |
| import { PageError } from "@/components/app/page-state"; | |
| import { isPostHogEnabled } from "@/lib/posthog"; | |
| export default function ErrorPage({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) { | |
| useEffect(() => { | |
| if (isPostHogEnabled) posthog.captureException(error); | |
| }, [error]); | |
| return <PageError message="We couldn't load this page. Please try again." retry={reset} />; | |
| } | |