Jack Fischer
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
`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
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