᲼᲼᲼
᲼᲼᲼
TTCTheo's Typesafe Cult
Created by ᲼᲼᲼ on 4/27/2023 in #questions
Using tRPC to connect to two different apis
You mean defining each route once in the next router and once in the other server router and making a request from one to the other? I don't like the code duplication and added latency
5 replies
TTCTheo's Typesafe Cult
Created by jjquek on 4/22/2023 in #questions
t3/next.js app - back button doesn't work?
maybe clerk fixed the bug
8 replies
TTCTheo's Typesafe Cult
Created by jjquek on 4/22/2023 in #questions
t3/next.js app - back button doesn't work?
hey, I had the same issue recently and it turned out to be from clerk's context. I didn't find a way to fix it though, I just moved the clerk context on the page instead of in _app
8 replies
TTCTheo's Typesafe Cult
Created by Mendy on 4/22/2023 in #questions
WHAT IS YOUR FAVORITE LOGGER?
i saw theo shit on sentry and suggested axiom over it. but he talked about backend logs. not sure if axiom is good with frontend logs/error handling
59 replies
TTCTheo's Typesafe Cult
Created by ᲼᲼᲼ on 4/19/2023 in #questions
In create-t3-app how to get tRPC zod schema on client?
Yeah but I think there must be a better solution. Importing random ui component files in your router doesn't seem ideal, especially as it becomes more complex. What I love about trpc is the simplicity of defining a procedure in one place and then being able to use it. I wonder what people do in practice. On a related note - do you know any library for automatically generating forms from a schema? Something like jsonforms
9 replies
TTCTheo's Typesafe Cult
Created by ᲼᲼᲼ on 4/19/2023 in #questions
In create-t3-app how to get tRPC zod schema on client?
Yeah, but then I would have to declare 2 things for each procedure and then import 2 things for each. I was hoping for some way to automate this. Maybe by traversing the router and getting the schemas, but not sure how feasible/secure this is. I wonder how it's done in practice (I searched theo's repos but couldn't find client side validation)
9 replies