Best Way to Carry Context to Error Handling in Remix
Hello, I have two three questions here :
1/ What is the best way to carry context to error handling ?
I am on Remix and I need to pass Session to error handling (done with Effect.catchTags). I have tried to add the Session in the error constructor but it feels bad, I have tried to extract it before entering in Effect world, but same feeling, and then I have fallback to a Service, that is yield in the error handling to get the session at last point
2/ Due to the first point, I wanted to know if there is some memoisation mecanism ? I've tried .cache and .once but feels not great (the goal was to compute the session lazyli and only one time)
3/ Do you have plan to add examples for each Effect.* method ? The docs in the website is nice but I think a display of all method with 1 / 2 or 3 examples would be even better (like https://www.learnrxjs.io/)
1/ What is the best way to carry context to error handling ?
I am on Remix and I need to pass Session to error handling (done with Effect.catchTags). I have tried to add the Session in the error constructor but it feels bad, I have tried to extract it before entering in Effect world, but same feeling, and then I have fallback to a Service, that is yield in the error handling to get the session at last point
2/ Due to the first point, I wanted to know if there is some memoisation mecanism ? I've tried .cache and .once but feels not great (the goal was to compute the session lazyli and only one time)
3/ Do you have plan to add examples for each Effect.* method ? The docs in the website is nice but I think a display of all method with 1 / 2 or 3 examples would be even better (like https://www.learnrxjs.io/)
