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

Function PostErrorComponent

examples/solid/basic/src/main.tsx:110–116  ·  view source on GitHub ↗
({ error }: ErrorComponentProps)

Source from the content-addressed store, hash-verified

108})
109
110function PostErrorComponent({ error }: ErrorComponentProps) {
111 if (error instanceof NotFoundError) {
112 return <div>{error.message}</div>
113 }
114
115 return <ErrorComponent error={error} />
116}
117
118function PostComponent() {
119 const post = postRoute.useLoaderData()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected