import { createSignal, onCleanup, onMount } from "solid-js"; import { TerminalErrorPage } from "~/components/TerminalErrorPage"; import { glitchText } from "~/lib/client-utils"; export interface ErrorBoundaryFallbackProps { error: Error; reset: () => void; } export default function ErrorBoundaryFallback( props: ErrorBoundaryFallbackProps ) { const [glitchError, setGlitchError] = createSignal("ERROR"); onMount(() => { const interval = glitchText(glitchError(), setGlitchError); onCleanup(() => { clearInterval(interval); }); }); const errorContent = (
{props.error.stack}