({ error }: ErrorComponentProps)
| 127 | } |
| 128 | |
| 129 | function PostErrorComponent({ error }: ErrorComponentProps) { |
| 130 | if (error instanceof NotFoundError) { |
| 131 | return <div>{error.message}</div> |
| 132 | } |
| 133 | |
| 134 | return <ErrorComponent error={error} /> |
| 135 | } |
| 136 | |
| 137 | const postRoute = createRoute({ |
| 138 | getParentRoute: () => postsRoute, |
nothing calls this directly
no outgoing calls
no test coverage detected