tRPCttRPC
Powered by
JonathanJ
tRPC•3y 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 
❯ npm create t3-app@latest 
example app to add to an exisitng app. I am trying to call the simple
post.hello
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?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

useQuery returning old data with new params
uzelacUuzelac / ❓-help
3y ago
useQuery context
Answer OverflowAAnswer Overflow / ❓-help
3y ago
useQuery caching data
НиткаННитка / ❓-help
2y ago
`useQuery` not working?
SansPapyrus683SSansPapyrus683 / ❓-help
3y ago