T
TanStack•8mo ago
ratty-blush

Tanstack Query + ky & Error Handling

Hi all. Anybody used the ky client for fetching data from an API? And how to best handle errors that get thrown from ky? Anybody got an good example or some good blog post about it? Cheers.
2 Replies
optimistic-gold
optimistic-gold•8mo ago
Shouldn't it "just work"? What are you having trouble with?
ratty-blush
ratty-blushOP•8mo ago
Hi @TkDodo 🔮 . Regarding it should just work - yeah you're correct 100% it does fly 😄 Was just wondering regarding any examples. I've had to read up on KY a bit to get my mind around it and in the end it's not ky or tsq that I'm having problems with. It's how the error handling was made in the backend - dotnet mvc and the exception handling is chaotic - and the micro-services handle exceptions on time one way and then the other one some other way - so no consistent exceptions - updating and modifying my ky clients as we speak 😄 Sorry for bothering 😄

Did you find this page helpful?