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

Request: specific scope disposal #118

Open
Anfet opened this issue Feb 16, 2023 · 0 comments
Open

Request: specific scope disposal #118

Anfet opened this issue Feb 16, 2023 · 0 comments

Comments

@Anfet
Copy link

Anfet commented Feb 16, 2023

Hello.

Is there a way (or planned) to close some specific scopes?
I'm opening scope for a stateful widget in initState method and closing the scope on dispose which allows precise DI management.
But stumbled upon inability to dispose my scope, because it's already being overlapped by other route widget.

So I get this sequence:
Screen A init -> Screen B init -> Screen A dispose (which in current flow disposes screen B scope).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant