Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
react query not updating the `error` field on errors - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
3y ago
•
4 replies
rafaelsilva81
react query not updating the `error` field on errors
I
'm new to using react query and i
'm using axios to fetch an REST API
, the api is throwing a 4xx error but the
error
error
field of useQuery
(
) is not updating
, the same happens to
isError
isError
isLoading
isLoading
stays true
, so the application gets stuck on loading state forever
. I
've tried setting
retry
retry
option to false or 0 but still doesn
't work
Theo's Typesafe Cult
Join
26,131
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Handling tRPC or React Query errors on the client side.
TTC
Theo's Typesafe Cult / questions
3y ago
Error on _app.tsx types using react query
TTC
Theo's Typesafe Cult / questions
4y ago