the_riz
the_riz
TtRPC
Created by NazCodeland on 6/13/2023 in #❓-help
should we use tRPC for handling form submittion or not?
I only mean they are the same in that both are using zod as a validator for both server and client. The actual client-ui-library part of things doesn't relate to tRPC. So for building forms, no tRPC doesn't do that, but for validating form-data, that is something tRPC would do. (I think)
6 replies
TtRPC
Created by Daniel on 6/13/2023 in #❓-help
Query data is undefined for a bit and is then populated. How to use with React State?
I don't know the answer to your question, sorry. But I'll note that you are using "async" without "await"-ing anything - you're changing into promise chaining. You might want to check for the query state and handing of it is loading, or is error, before immediately jumping to the setting of state.
5 replies
TtRPC
Created by NazCodeland on 6/13/2023 in #❓-help
should we use tRPC for handling form submittion or not?
I don't know anything about that library, but taking a quick look at it, it almost seems like it is doing the exact same thing that tRPC does?
6 replies