Spark
calling tRPC procedure from custom link
what is the best way to call a procedure from a custom link? I see in https://github.com/pyncz/trpc-refresh-token-link they are using a helper client. I tried the proxy client approach with
await utils.client.auth.refresh.mutate(tokens)
, but getting Error: Unable to find tRPC Context. Did you forget to wrap your App inside withTRPC HoC?
.4 replies
tRPC deployed with Amazon API Gateway adapter, SST Ion, and Clerk auth
I am going through this https://ion.sst.dev/docs/start/aws/trpc/, but I don't know the best way to pass auth() from server Next.js to
awsLambdaRequestHandler
.
I am doing for Expo and that is working fine.2 replies
optimistic updates tRPC v11 + TanStack Query v5
I am reading https://tanstack.com/query/latest/docs/framework/react/guides/optimistic-updates#if-the-mutation-and-the-query-dont-live-in-the-same-component and I am a bit confused on the best way to implement the optimistic updates 'Via the UI'. How would I access variables from
useMutationState
?3 replies