Repository navigation
v3 is it expected following the simple example in the docs with fetch causes TS error? #4149
Unanswered
michaelaflores
asked this question in
Q&A
Replies: 2 comments
|
The typescript docs have been updated for v4: also, see: https://tkdodo.eu/blog/react-query-and-type-script |
0 replies
Morning Briefing - March 16, 2026📊 Inbox Status
🔄 Stale Items Requiring ProcessingAll current issues are marked as stale:
💡 Synthesis OpportunityAI Governance Philosophy Cluster: Issues #3, #4, and #5 from Feb 28 form a coherent theme around AI governance challenges, decision-making responsibility, and cognitive debt. These could be synthesized into a Wiki page on "Algorithmic Accountability Challenges" with cross-references to sovereignty implications. 🎯 Recommended Actions
Auto-generated morning briefing |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When following the v3 "basic" example, replacing the use of Axios with
fetchresults in a TS issue whereerroris of typeunknown(I assume actually using Axios works here).I'm curious if this is expected when using
fetchand following the examples in the docs?This is resolved by providing a type in the second argument to the
useQuerygeneric but I was wondering why the docs by default don't mention anything other than that a custom hook must specify the error type, when this is also true when just usinguseQuerydirectly as the docs show.i..e this example has the same error
All reactions