T
tRPC

❓-help

useQuery never returning or hitting API

JJonathan11/22/2023
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?

Looking for more? Join the community!