Showing pending inside the request?
I am using trpc with nextjs but when I am using hooks they're just not returning anything? Like it makes the request but it goes as pending and just blocks everything
6 Replies
const { data: news } = api.news.getAllNews.useQuery();
I noticed this seems to be happening with the hooks only
Because I am using server side calls in some places by creating a callerquery logs
"next": "13.4.12",
and next version
the trpc server seems to be compiling
this is how the handler looks like
anyone got any idea why this could be happening?
happens with both mutations and queries
a normal request works to the api
even this doesn't log..
I don't know whats wrong at this pointHaving the same problem
probably just a bad url or something