Handling Method Calls Within a Service Constructed with Layer.effect
"What is the recommended pattern for methods of a service to call each other when the service itself is constructed with Layer.effect because it has asynchronous or effectful dependencies?
When I try to have one method (methodA) call another (methodB) on the same service instance from within its implementation, I get a type error where the R channel of the effect returned by methodA is incorrectly inferred as needing the service's own Tag, leading to a ... is not assignable to ...never error.
When I try to have one method (methodA) call another (methodB) on the same service instance from within its implementation, I get a type error where the R channel of the effect returned by methodA is incorrectly inferred as needing the service's own Tag, leading to a ... is not assignable to ...never error.
