T3 BETA - how to query on client side?

I am using [email protected] with nexjs 13. How can I make a query or a mutation on a client component? There is no /utils folder for client side queries/mutation hooks.
4 Replies
FleetAdmiralJakob 🗕 🗗 🗙
Like you did in the /pages router the /app router w/ client components is not different
ippo
ippoOP•16mo ago
fixed it by copying the utils folder from the 7.18 version 🙂 now I have to test @fleetadmiraljakob how can I do a lazy request so I can do a request or mutation on a button click and is withTRPC hook required? (in the end it is just a REST call)
FleetAdmiralJakob 🗕 🗗 🗙
Did you build a Rest API or an TRPC API?
ippo
ippoOP•16mo ago
sure, REST, GraphQL, gRPC
Want results from more Discord servers?
Add your server