Join Slack
When dealing with a StateFlow in ViewModel, stateIn vs collect: the benefit of using stateIn is the ...
# flow
l
liminal
12/27/2022, 4:26 PM
When dealing with a StateFlow in ViewModel, stateIn vs collect: the benefit of using stateIn is the “started” param which lets you resubscribe to keep the stream alive on configuration changes. Correct? Any other considerations?
17
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by