Avoiding Cyclical Dependencies in Effect Services

How do people manage to avoid cyclical dependencies in Effect services?

I find it really difficult and often end up having cyclical imports like the Auth service importing the Email service and the email service importing the Auth service.

I can't seem to find a good way to handle all of this reliably aside from repeating a bunch of code, which kind of defeats the point of services as I see them.
Was this page helpful?