How can you fetch data on a dynamic router with trpc?
I’m creating a table component within my NextJs app. Instead of making an api call in the parent component and passing the data to the table through props I’d like the component to be able to manage its own state. How can I achieve this in trpc v10?
In v9 I believe you could do const helloNoArgs = trpc.useQuery(['hello']const helloNoArgs = trpc.useQuery(['hello']
What’s the equivalent, if there is one, in v10?
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
t
tRPC
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.