How to handle Errors in catch?
Hey,
I am relatively new to TypeScript, but I want to learn. I need some help here.
I think this has nothing to do with tanstack query. I think this is JS TS specific. How you handle this? With guards?
I tried it to solve like that:
but that seems not to be the final conclusion of wisdom.
Thanks
I am relatively new to TypeScript, but I want to learn. I need some help here.
I think this has nothing to do with tanstack query. I think this is JS TS specific. How you handle this? With guards?
I tried it to solve like that:
but that seems not to be the final conclusion of wisdom.
Thanks