Vargas
Vargas
TTCTheo's Typesafe Cult
Created by hyhy on 12/30/2023 in #questions
Calling trpc mutations on client components with app router
my pleasure
21 replies
TTCTheo's Typesafe Cult
Created by hyhy on 12/30/2023 in #questions
Calling trpc mutations on client components with app router
21 replies
TTCTheo's Typesafe Cult
Created by hyhy on 12/30/2023 in #questions
Calling trpc mutations on client components with app router
In src/app/layout.tsx, Header must be inside the TRPCReactProvider
21 replies
TTCTheo's Typesafe Cult
Created by hyhy on 12/30/2023 in #questions
Calling trpc mutations on client components with app router
Just found the issue
21 replies
TTCTheo's Typesafe Cult
Created by hyhy on 12/30/2023 in #questions
Calling trpc mutations on client components with app router
Just let me setup locally here
21 replies
TTCTheo's Typesafe Cult
Created by hyhy on 12/30/2023 in #questions
Calling trpc mutations on client components with app router
Indeed. Same as create-t3-app. Can you share the repository? It would be easier to troubleshooting it
21 replies
TTCTheo's Typesafe Cult
Created by hyhy on 12/30/2023 in #questions
Calling trpc mutations on client components with app router
And just to make sure, EpisodeForm file contains "use client"?
21 replies
TTCTheo's Typesafe Cult
Created by hyhy on 12/30/2023 in #questions
Calling trpc mutations on client components with app router
Probably an error with your ~/trpc/react.tsx. Do you mind sharing it, please? We need to check TRPCReactProvider
21 replies
TTCTheo's Typesafe Cult
Created by shbangng on 12/27/2023 in #questions
Struggle in tRPC with "use server" not working
Instead of
await api.post.create({ name: name })
await api.post.create({ name: name })
Try:
await api.post.create.mutate({ name: name })
await api.post.create.mutate({ name: name })
The latest t3-app, uses createTRPCProxyClient as you pointed and it behave like a query client
3 replies
TTCTheo's Typesafe Cult
Created by Viszy A on 12/30/2023 in #questions
Need help with creating a mutation that involves relations
I see you are running input.map.project, input.projects would be the right variable
4 replies