riverpod
riverpod copied to clipboard
ref.onDispose & other life-cycles listeners should offer a way to remove the listener
In case a Notifier may want to use ref.onDispose
only while a method is executing, we would want to remove the onDispose
listener when the method ends. Otherwise we would have some memory leak