josephbranch
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']
What’s the equivalent, if there is one, in v10?8 replies