Replies: 1 comment 7 replies
-
What you're asking for most likely stems from a misunderstanding of what Could you explain clearly why you want this? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe what scenario you think is uncovered by the existing examples/articles
I have a autoDispose family future provider that is watched in a widget. When the family argument changes, the widget is rebuild with the new argument and the new instance of the provider is initialized. After that, the previous instance referenced by the previous argument is disposed. It is unclear how I would make sure that onDispose is called on the first instance before the second is created.
Describe why existing examples/articles do not cover this case
The family and autoDispose documentation does not describe this potential problem.
Beta Was this translation helpful? Give feedback.
All reactions