Handling errors from an effect in a React Router loader function can be a bit tricky, especially ...
with react-router 7 (remix), what should be the way to handle error from an effect?
I struggle to see a nice pattern here, I tried to play with
https://effect.website/play/#497422950387 to simulate react router loader and stuff
I struggle to see a nice pattern here, I tried to play with
runPromiseExit and use Exit.match in the component but the type of res is not an Exit anymore but rather a encoded one, so Exit.match wont be satisfied type wisehttps://effect.website/play/#497422950387 to simulate react router loader and stuff
