JonathanJ
tRPC3y ago
1 reply
Jonathan

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'});


It never hits the api or gets out of the loading state, what am I missing?
Was this page helpful?