Getting this error: Cannot read properties of undefined (reading 'upsert')
Stuck trying to utilize useQuery to fetch some data on form submission
createTRPCNext type error
Full cache invalidation and timing problem
onSuccess
call. And I'm not sure which onSuccess
call is meant to be called by the await opts.originalFn()
in the following snippet. It says it will call the onSuccess
defined in the useQuery
call. I naively maybe thought it would call the onSuccess
defined in the useMutation
. But when I try to do some simple console logging, I can't figure out the timing of these calls. Both the originalFn
and invalidateQueries
calls get fired before any of my onSuccess
calls. So it has left me a little confused 🤔
TL;DR; Where do I define the opts.originalFn()
getting called here?...Using Next.JS + Fastify
Error Handling vs Error Formatting
NotFoundError
class, I need to update the response http code to 404 and also hide the data associated with that error in production. Should I be doing this within the errorFormatter
?
Thanks!...Cannot find module '@trpc/react-query/server' or its corresponding type declarations
import { createServerSideHelpers } from '@trpc/react-query/server'
import { createServerSideHelpers } from '@trpc/react-query/server'
Procedure with generic input?
Delete item {0: {json:{id: 12324}}}
{0: {json:{id: 12324}}}
, without trpc everything working fine, dont understand where the {0: {json:{id: 12324}}}
coming from? what is batch 1?
Query function depends on a variable
'useInfiniteQuery' hook disappeared after moving to Turborepo
/apps/app
- /packages/api
The useInfiniteQuery
hook seems to have dissapeared after migrating, and I can't get it back....convert the result to date objects
ECONNREFUSED with TRPC call on Vercel

Invalid Val
is possible to combine next-minimal-starter with react-router-dom ?
using same query for entries app
Header
component that wrapper in Layout
component
...How can I make a direct fetch on a router endpoint from TRPC in NextJS on client?
const bilbo = await client.getUser.query('id_bilbo');
const bilbo = await client.getUser.query('id_bilbo');
How to get unwrapped errors out of proxy client