MCPcopy Create free account
hub / github.com/TanStack/router / MyErrorComponent

Function MyErrorComponent

packages/solid-router/tests/errorComponent.test.tsx:18–20  ·  view source on GitHub ↗
(props: ErrorComponentProps)

Source from the content-addressed store, hash-verified

16import type { ErrorComponentProps } from '../src'
17
18function MyErrorComponent(props: ErrorComponentProps) {
19 return <div>Error: {getErrorMessage(props.error)}</div>
20}
21
22function getErrorMessage(error: unknown) {
23 return error instanceof Error ? error.message : String(error)

Callers

nothing calls this directly

Calls 1

getErrorMessageFunction · 0.70

Tested by

no test coverage detected