You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
snapshotModule = new module.SnapshotModule(snapshotDependencies);
snapshotDependencies = new Array<hex.di.mapping.MappingDefinition>(
mapping({fromType: "Void->Void", toValue: snapshotController.onSnapshotSaved, withName: "onSnapshotSaved"})
);
snapshotController = new adapter.SnapshotController(snapshotModule.takeSnapshot);
As you can see, there is a circular dependency between snapshotModule and snapshotController, but it might be hard to notice in some cases.
Trying to compile the code results in a really long list of errors, none of which are helpful to find the source of the problem.
It would be nice if circular dependencies are detected during building of the dependency graph, and a meaningful error message is produced.
The text was updated successfully, but these errors were encountered:
Example code:
As you can see, there is a circular dependency between
snapshotModule
andsnapshotController
, but it might be hard to notice in some cases.Trying to compile the code results in a really long list of errors, none of which are helpful to find the source of the problem.
It would be nice if circular dependencies are detected during building of the dependency graph, and a meaningful error message is produced.
The text was updated successfully, but these errors were encountered: