What is the pattern for unsubscribing from a subscription?
How to add a short delay between requests
Global metadata / filters: Re-validate all queries
testModeFilter
. In our dashboard this could be a Context / Provider that manages this state, ideally, when testModeFilter, we want to:
1. invalidate all queries / refetch mounted queries...Attempted import error: 'hashQueryKey' is not exported from '@tanstack/react-query' issue
Error: (0 , react__WEBPACK_IMPORTED_MODULE_3__.createContext) is not a function
TRPC cant handle Error
I want to create a wrapper for TRPC.init but I can't seem to get the context type correct.
Trouble getting a TRPC client in Astro SSR pages, instead I get a noop
trpcAstro
client so I'm relatively confident that my server is set up correctly but here it is for reference (https://github.com/aisflat439/another-abandoned-idea-app/blob/main/packages/web/src/trpc/server/index.ts).
I've referenced this https://www.thomasledoux.be/blog/using-trpc-astro-islands-react along with a handful of sites I've found to reference on github. But no matter how I configure this I seem to get an empty client (see attached image)...
Why webhooks does not work with TRPC?
tRPC set up error

Vercel maxDuration with tRPC
vercel.json
:
```json
{
"functions": {...src/pages/api/trpc/[trpc].ts
src/pages/api/trpc/[trpc].ts
Where is client side error handling documented?
does api.myQuery.invalidate() works if the query is not made at the first place?
working with custom errors and trpc errorFormatter
tRPC and OpenTelemetry
Multiple TRPC endpoints on same API, with discrete clients? Any gotchas?
/routes/api/estimating/trpc/[...procedures]
- /routes/api/scheduling/trpc/[...procedures]
- /routes/api/reporting/trpc/[...procedures]
...Proper way to revalidate SSR but from Client Side, ie. after a success Mutation.
How to implement tRPC auth ?
tRPC middleware infer type from another protectedProcedure
protectedProcedure
check and adds a not nullable user to the ctx. However the studyMiddleware
does not know that user is not nullable, is there a way for the middleware to be aware of it?
In my current code I had to validate the user is not nullable inside the middleware and had to manually pass the user to the ctx user: opts.ctx.user,
to make user not nullable inside the mutation.
Here is a sample of my code
...tRPC requests on client vs server for NextJs
Also, I don't quite understand how to properly set up a server client in tRPC with next in regards to providing context....
passing user input state variable to all api calls
x-selected-organization
is there an alternative way to achieve this possibly given a custom link?