Jack Fischer
Jack Fischer
TtRPC
Created by Jack Fischer on 12/21/2023 in #❓-help
Modify mutation error messages?
We occasionally get timeouts from cloudfront which gives the user an error about how the cloudfront HTML error page isn't valid JSON, instead of what would make sense to the user, which is that the request timed out. Is there a callback or anything else anywhere we could use to intercede on error messages?
5 replies
TtRPC
Created by Jack Fischer on 12/20/2022 in #❓-help
`QueryClientProvider` not included in `withTRPC`?
Trying to use import { useIsMutating } from "react-query" but it's throwing Error: No QueryClient set, use QueryClientProvider to set one We have the trpc.withTRPC(MyApp) with Next.js to add the tRPC provider - expected that this wouldn't also add the QueryClientProvider?
3 replies
TtRPC
Created by Jack Fischer on 12/19/2022 in #❓-help
Any tips for Typescript slowness?
We successfully migrated from 9.x to 10 but are still seeing slow VS Code perf (10+ seconds to get any type info) are there any strategies we can use to minimize this?
14 replies
TtRPC
Created by Jack Fischer on 12/5/2022 in #❓-help
Any way to view headers in middleware?
Middleware input doesn't seem to have it :/
3 replies
TtRPC
Created by Jack Fischer on 11/16/2022 in #❓-help
Difference in type inference for vanilla client?
6 replies
TtRPC
Created by Jack Fischer on 10/7/2022 in #❓-help
Show a spinner when any mutation is loading?
Looking to show an activity spinner in the header of our application whenever a mutation is in flight (Hoping this will be easier than showing it in every conceivable place to say that your request is loading). There might be a few ways to do this, but any recommendations for minimal boilerplate?
6 replies
TtRPC
Created by Jack Fischer on 10/5/2022 in #❓-help
Recommended file structure for next.js?
Hey all - using tRPC heavily with next.js and it's great. Our main [trpc].ts file is getting huge and unwieldily - wondering what the recommendations are out there for organizing?
8 replies