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
Hello everybody, this maybe my misunderstanding of disposing streams, but I have following scenario:
View that implements MultipleStreamsViewModel where my users are doing workouts in the fitnes app, when interval completes-> Navigate to Secondary screen that serves as "rest screen" -> clear stack and show (screen with MultipleStreamsViewModel) to run next interval in a workout. Every time I come back streams fail and I noticed that navigation does not kill streams, I thought that "clear stack and show" would dispose streams and will recreate them when it comes back to the original screen.
How would you handle scenario where you have:
MultipleStreamViewModel
break
return to MultipleStreamViewModel
The only reason why I want to stop streams is to reduce battery consumption and memory load, but I might be lacking some flutter skills here
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everybody, this maybe my misunderstanding of disposing streams, but I have following scenario:
View that implements MultipleStreamsViewModel where my users are doing workouts in the fitnes app, when interval completes-> Navigate to Secondary screen that serves as "rest screen" -> clear stack and show (screen with MultipleStreamsViewModel) to run next interval in a workout. Every time I come back streams fail and I noticed that navigation does not kill streams, I thought that "clear stack and show" would dispose streams and will recreate them when it comes back to the original screen.
How would you handle scenario where you have:
The only reason why I want to stop streams is to reduce battery consumption and memory load, but I might be lacking some flutter skills here
Beta Was this translation helpful? Give feedback.
All reactions