Spark
Explore posts from serverscalling 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
TTCTheo's Typesafe Cult
•Created by Spark on 1/30/2024 in #questions
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
?2 replies
TTCTheo's Typesafe Cult
•Created by Spark on 1/24/2024 in #questions
how would I use validators from drizzle-zod in expo?
I am reading this on the create-t3-turbo README:
Currently, I am referencing the OpenStatus repo where they create the validation schemas in the db package https://github.com/openstatusHQ/openstatus/blob/main/packages/db/src/schema/users/validation.ts. How would I use these in expo if I cannot have
@acme/db
as a dependency?
Do I have to manually create the validators in the validators package and only use drizzle-zod
in Next.js?2 replies
TTCTheo's Typesafe Cult
•Created by Spark on 1/7/2024 in #questions
trying to integrate solito in create-t3-turbo
I am having a bit of trouble converting create-t3-turbo into a solito project. Has anyone had success, or does anybody want to help?
Here is the repo: https://github.com/trevorpfiz/nourish.run
I will share my progress here as I continue.
7 replies