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
In Notifier's, ref.onDispose executes whenever the build method is called. However, the Notifier itself isn't rebuilt. Ref.onCancel has the following warning: "When the callback is invoked, there is no guarantee that the provider will get paused/dispose. It is possible that after the last listener is removed, a new listener is immediately added."
Is there a callback that is executed when a Notifier itself is disposed? In StateNotifier, this could be accomplished via overriding dispose, but that doesn't seem to be an option in Notifiers.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In Notifier's, ref.onDispose executes whenever the build method is called. However, the Notifier itself isn't rebuilt. Ref.onCancel has the following warning: "When the callback is invoked, there is no guarantee that the provider will get paused/dispose. It is possible that after the last listener is removed, a new listener is immediately added."
Is there a callback that is executed when a Notifier itself is disposed? In StateNotifier, this could be accomplished via overriding dispose, but that doesn't seem to be an option in Notifiers.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions