the_riz
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
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