T
tRPC

Cancel useQueries with single function

Cancel useQueries with single function

Vvildantursic10/6/2023
is there a way to abort useQueries with function call (e.g. cancel, abort)?
JFJack Fischer10/30/2023
Hey @vildantursic did you figure out an option here?
Vvildantursic10/30/2023
Hey, nope, not yet
TTkDodo 🔮10/31/2023
the cancel method you get back from trpc utils is the same as queryClient.cancelQueries: https://trpc.io/docs/client/react/useUtils#helpers

Looking for more? Join the community!

T
tRPC

Cancel useQueries with single function

Join Server
Recommended Posts
There is a logger middleware like morgan for express?There is a package with a nice logger middleware? ThanksImplementing wsLink causes issues on ReactI get an error within the console stating ``` Uncaught (in promise) TypeError: Cannot read propertieUnderstanding how too reuse TRPC with React Server ComponentsHopefully I am understanding this correctly, but I have created a `experimental_createTRPCNextAppDirWhat would be considered best practice for getting data and invalidating queries?I have a really simple task management app (doing it to learn stuff). Tasks are grouped in projects Calls to specific table not working in production, fine locallyI am having a strange issue since yesterday. I am using nextjs TRPC and Prisma to connect to a planeanyone else getting a failed to fetch in latest next versionsnot sure if this is happening to more people, I tried literally everything, changing to 127.0.01, upMissing keys in TRPCError when returning as JSONHey all! I am returning a TRPCError from a custom TRPC server but only the code and name keys seems How to close a Standalone adapter server?I want to run some integration tests with Vitest and for some reason I don't want to use the `createtRPC Client within Next.js but with external standalone server?Hi, I have an old Next.js project that used tRPC and we're currently in the process of separating oReview of inner and outer context with expressHello, I didn't find any example that uses inner (for testing) and outer context with express. That