josephbranch
josephbranch
TtRPC
Created by josephbranch on 4/26/2023 in #❓-help
How can you fetch data on a dynamic router with trpc?
The console tells me missing queryFn
8 replies
TtRPC
Created by josephbranch on 4/26/2023 in #❓-help
How can you fetch data on a dynamic router with trpc?
trpc.post.byId.useQuery('1', {
trpc: {
batching: false,
},
});
trpc.post.byId.useQuery('1', {
trpc: {
batching: false,
},
});
This works just fine, but I'm creating a component that is responsible for it's own data and this is specific to 1 case
8 replies
TtRPC
Created by josephbranch on 4/26/2023 in #❓-help
How can you fetch data on a dynamic router with trpc?
Is there a particular module that I need or should the below implementation work out of the box
useQuery(['post.byId', '1'], {
trpc: {
context: {
batching: false,
},
},
});
useQuery(['post.byId', '1'], {
trpc: {
context: {
batching: false,
},
},
});
8 replies
TtRPC
Created by josephbranch on 4/26/2023 in #❓-help
How can you fetch data on a dynamic router with trpc?
I did not. I entered trpc on v10 so I apologize, but thank you!
8 replies