Integrating Effect with Remix/React-Router: Handling Session and AsyncLocalStorage
Hey! So I'm trying to wrap my head around a plan of introducing Effect to a Remix/React-Router codebase (of a considerable size)
I've seen Michael's stream where he wrapped loaders and actions into a ManagedRuntime, but there's one thing that I'm not sure how it can work
We have a middleware for reading the session cookie, validating, and then we set the current user in AsyncLocalStorage so it can be accessed in other parts of the code.
Since in Remix/React Router I don't control how loaders/actions and middlewares are called, what would be best way to port this behavior to Effect?
I've seen Michael's stream where he wrapped loaders and actions into a ManagedRuntime, but there's one thing that I'm not sure how it can work
We have a middleware for reading the session cookie, validating, and then we set the current user in AsyncLocalStorage so it can be accessed in other parts of the code.
Since in Remix/React Router I don't control how loaders/actions and middlewares are called, what would be best way to port this behavior to Effect?
