t
tRPC
useQuery never returning or hitting API - tRPC
J
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
?
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
4,951
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
useQuery returning old data with new params
U
uzelac / ❓-help
3y ago
useQuery context
A
Answer Overflow / ❓-help
3y ago
useQuery caching data
Н
Нитка / ❓-help
3y ago
`useQuery` not working?
S
SansPapyrus683 / ❓-help
3y ago