TanStack Query: Surface custom errors for useQuery()
#1508
Labels
feature 🚀
New feature or request
prioritized 🚚
This issue has been prioritized and will be worked on soon
Description
In setting up auth for my application I have noticed that my explicitly defined auth errors are surfaced in queries, but they are in mutations.
This should be solvable as there is a
UseQueryOptions
type that takes custom errors similar toUseMutationOptions
From the react query types
Examples
Post spec
Generated post
Also note the query here doesn't surface them
Get spec
Generated get
The text was updated successfully, but these errors were encountered: