Recipes
Diagnose circular dependencies
Read the recorded resolution path and move coordination out of a cyclic constructor graph.
v0.1.0-dev.1Advancedark_di
Diagnose circular dependencies
Ark DI reports the descriptors that formed a cycle, for example:
text
CatalogService → CatalogRepository → SyncCoordinator → CatalogService
Do not hide the cycle behind late Service Locator reads. Extract the shared policy into a smaller dependency, invert one relationship through an application-owned callback or event boundary, or split construction from activation when the lifecycle genuinely has two phases.