Jonathan
Jonathan9mo ago

useQuery never returning or hitting API

I have something off in my configuration, i copied most of the files from the ❯ npm create t3-app@latest example app to add to an exisitng app. I am trying to call the simple post.hello and i tis working on the server. but when I call it on the client side like:
const postResult = api.post.hello.useQuery({text:'Hello'});
const postResult = api.post.hello.useQuery({text:'Hello'});
It never hits the api or gets out of the loading state, what am I missing?
0 Replies
No replies yetBe the first to reply to this messageJoin