({ error }: ErrorComponentProps)
| 108 | }) |
| 109 | |
| 110 | function PostErrorComponent({ error }: ErrorComponentProps) { |
| 111 | if (error instanceof NotFoundError) { |
| 112 | return <div>{error.message}</div> |
| 113 | } |
| 114 | |
| 115 | return <ErrorComponent error={error} /> |
| 116 | } |
| 117 | |
| 118 | function PostComponent() { |
| 119 | const post = postRoute.useLoaderData() |
nothing calls this directly
no outgoing calls
no test coverage detected