We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi @escamoteur,
First of all, Thank you for the library.
Can you please provide examples of how get_it can solve's cyclic dependencies?
for eg:
GetIt g = GetIt.instance; g.registerLazySingleton<ServiceA>(() => ServiceA(g.get<ServiceB>())); g.registerLazySingleton<ServiceA>(() => ServiceB(g.get<ServiceA>()));
If ServiceA is dependent on ServiceB and vice-versa, how do we solve it?
ServiceA
ServiceB
Thanks
The text was updated successfully, but these errors were encountered:
I guess you can create a new class instead that both ServiceA and ServiceB can depend on.
Sorry, something went wrong.
Can you elaborate @iandis. Any code samples pls..?
@prijupaul I think this stackoverflow discussion may help you.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Hi @escamoteur,
First of all, Thank you for the library.
Can you please provide examples of how get_it can solve's cyclic dependencies?
for eg:
If
ServiceA
is dependent onServiceB
and vice-versa, how do we solve it?Thanks
The text was updated successfully, but these errors were encountered: