Understanding Effect's Use in Error Handling
Hello everybody. I saw Effect's introductory video and am even glancing through it's documentation but I still don't understand how, where, and why should I be using it. Until now I was thinking that as long as I use something like Tanstack Query or something it will be just fine. It also seems like I wasn't handling errors properly. I have always done fetching in a single try-catch block and that was it. I don't even bother to check the error by types (I just put any type. I know it's wrong, but I don't know the what error types I should be handling there.) I would be grateful if somebody could shed some light on this. Thank you in advance.
