Handling Nested Service Access in Effect: Is Yielding Services from Standalone Functions Acceptable?
Hi everyone, I'm new to Effect and I wanted to say thank you for creating this amazing library.
I have a question about how to deal with nested services access.
Let's say I have the following code:
Inside
Is this an acceptable solution?
I could change
Thanks
I have a question about how to deal with nested services access.
Let's say I have the following code:
Inside
doSomethingElse I yield ServiceB, and to avoid the dependency to bubble up, I provide it as part of the doSomething function body in ServiceA.Is this an acceptable solution?
I could change
doSomethingElse to be a service or move it inside make, but the whole point here is for me to understand if it's possible (and if it makes sense) to yield services from a standalone Effect function.Thanks
