Keep old data when changing trpc procedure inputs
navigate
triggers new inputs for the query.
```...AI support
How to get a TRPCClientError shape as in initTRPC errorFormatter for testing
Basic error handling patterns
Override output schema for certain mutations
How to handle TRPC error with tanstack/query in components
Migrating to v11 problem: 'reactQueryContext' does not exist in type 'CreateTRPCReactOptions
Object literal may only specify known properties, and 'reactQueryContext' does not exist in type 'CreateTRPCReactOptions<BuiltRouter<{ ctx: { req: fastify.FastifyRequest<fastify.RouteGenericInterface, fastify.RawServerDefault, IncomingMessage, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown, fastify.FastifyBaseLogger, fastify_types_type_provider.ResolveFastifyRequestType<fastify.FastifyTypePro...'.
Object literal may only specify known properties, and 'reactQueryContext' does not exist in type 'CreateTRPCReactOptions<BuiltRouter<{ ctx: { req: fastify.FastifyRequest<fastify.RouteGenericInterface, fastify.RawServerDefault, IncomingMessage, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown, fastify.FastifyBaseLogger, fastify_types_type_provider.ResolveFastifyRequestType<fastify.FastifyTypePro...'.
Following documentation gives error: "You cannot dot into a client module from a server component."
21.6.2
, tRPC 11.0.0-rc.553
(client, server, next, react-query), next 14.2.14
, and react-query 5.59.0
So, I'm trying to follow the React-Query Server Components setup guide in the tRPC docs, and I've mostly just copy pasted the code out, yet my client component isn't working.
This works: ```tsx...'use-client'
rather than 'use client'
.automatically add current path to the useQuery
Error with AppRouter type mismatch in Deno
Typing on trpc.createClient?
generate types and publish them in a npm package
withTRPC not working in RootLayout
Error: useState only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/react-client-hook-in-server-component
. Do I...Using superjson transformer makes data empty
.data
property on trpc queries are empty.
Checking the network tab the data is definitely there in the response, it's just undefined
when accessing query.data
. After some time debugging, I removed the superjson
transformer from client & server, and now things are working again....Client unable to send requests on certain internet providers
How to get mutation onError typescript type
Server component (createHydrationHelpers) setup with external router
createCaller
is the router is deployed externally.
https://trpc.io/docs/client/react/server-components...How to use client and react-query simultaneously?
query
and useQuery
methods.all my inferred typings on the frontend are `any`