AutoDisposeProvider
is getting disposed when watched in a StreamProvider
using async*
#3526
Labels
AutoDisposeProvider
is getting disposed when watched in a StreamProvider
using async*
#3526
Describe the bug
When watched in a
StreamProvider
usingasync*
, an auto dispose provider is getting disposed even when watched.To Reproduce
Run
flutter run
on the code sample.Tap on the floating action button to increment the state of the
stateNotifier
.Notice that the state is disposed even though it is watched.
Code sample
You can also checkout https://github.com/ValentinVignal/flutter_app_stable/tree/riverpod/autodipose-provider-getting-disposed-in-async
Expected behavior
I would expect the
async*
behavior to be the same as the one without usingasync*
(aka: the state not being disposed)I'm using
The text was updated successfully, but these errors were encountered: