Error Formatting
The error formatting in your router will be inferred all the way to your client (& React components)
Usage example highlighted
Adding custom formatting
server.tsts
server.tsts
Usage in React
components/MyComponent.tsxtsx
components/MyComponent.tsxtsx
All properties sent to errorFormatter()
Since
v8.xtRPC is compliant with JSON-RPC 2.0
ts
ts
DefaultErrorShape:
ts
ts