#best way to handle errors of api that returns status 200 w error field
5 messages · Page 1 of 1 (latest)
return data field and throw errors field in queryFn?
yup but that would make me add this for every queryFn so i would end up w a lot of extra code. I am looking for a generic solution
which I think I found modifying the querycache on success at the client level
onSuccess on the queryCache + throw there could work