Skip to content
New issue

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

How can I create scoped container? #63

Closed
Turbozanik opened this issue Nov 27, 2020 · 2 comments
Closed

How can I create scoped container? #63

Turbozanik opened this issue Nov 27, 2020 · 2 comments
Labels
waiting for customer response Waiting on customer response

Comments

@Turbozanik
Copy link

In your example you are creating a scoped container inside the screen itself, which makes such scoped DI worthless.
Can I somehow use scoped container to make the same logic as Dagger2 @Scoped and Koin scoped does?
I want to create a scoped container in the main class, for example, and then use it when I will open the screen related to that scoped container.

@vanlooverenkoen
Copy link
Collaborator

You could create a new scoped container and register it i in the global one. and get it back when needed.

@gbtb16
Copy link
Owner

gbtb16 commented Jan 15, 2024

Hey @Turbozanik, I am going to close this issue for now to remove it from our review queue. If you would like to push new comments here, feel free to reopen when it is ready for a look. Thanks very much for contributing!

@gbtb16 gbtb16 closed this as completed Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for customer response Waiting on customer response
Projects
None yet
Development

No branches or pull requests

3 participants