T
tRPC

Default Query Function to resume paused mutations

Default Query Function to resume paused mutations

Eeyalll5/10/2023
I'm building a React Native App with an offline mode. I implemented a PersistQueryProvider and a built my own createMMKVStoragePersister. When the app gets back online it fails to resume paused mutations because at that point functions does not exist. Any advice on providing the default query fucntions since they already exist from the trpcClient?
Nnlucas5/10/2023
This might be more of a React Query question honestly Do their docs say anything about this?
Eeyalll5/11/2023
They say that you should provide Default Query Function for those mutations which is more straight forward if you are using "vanilla" react query. But I thought that it could be a way to provide all the query functions (at least the mutations) that trpc makes for react query
Nnlucas5/11/2023
Hm, this might be worth putting together a minimal example and opening a github issue 🙂
Eeyalll5/11/2023
Sounds good!

Looking for more? Join the community!

T
tRPC

Default Query Function to resume paused mutations

Join Server
Recommended Posts
SuperJSON is wrapping results in type with keys "json" and "meta"How can I modify the transformer in SuperJSON library to only return the "json" property and ignore Caching(?) previous data until query returns new datawhen I update my useQuery inputs with new filters it instantly sets the data to `undefined` while thHow to upload file not use S3 Next js? Please, examplefile: course.router.ts / import { CourseSchema } from "~/schema/post.schema"; import { createTRPChow can i send a request to specific route in trpc server, after mutation ?i am using trpc with next js ,Help in deploymentHey all, I am building an app which is having a 1 . vite-react frontend 2 . trpc-standalone how to persist the query client?I want to persist the trpc query client cache, but don't want to create a new query client, I want tHow to infer type of a nested object from app router output?I have a tRPC router than returns a nested object through a db query. It looks like this: ```ts ILeWhat's the type of errorFormatter parameterI wanna know how could i get the type of the errorFormatter parameter, so i can move the errorFormattRPC works only for monoliths environment?How can I works if typesafe in real time with a remote server? 🤔How to use createCaller() with lambda for testing?Has anyone successfully mocked a trpc caller that uses the AWS Lambda integration? trying to write sis there a way to call useQuery() from a callback and get the return value within that callback?I have a generic component that is effectively an autocomplete that fills in options from a web requUsing Response with the Next App RouterThe route handlers in the App Router, only receive the Request object, requiring you to use a Respon