Beginner here. I use walk() to generate a Sequence...
# compose
r
Beginner here. I use walk() to generate a Sequence and then updating a StateFlow in a ViewModel. My expectation were to have a stream of update but I only get the final result. What did I miss? I've also tried
Copy code
viewModelScope.launch(Dispatchers.Default) and withContext(Dispatchers.Main)
to update the Flow but still no gradual update. Thanks for any recommandation
c
Better ask in #getting-started or #coroutines
👍 1
But in generals you’ll need to map your sequence into a flow with https://kotlinlang.org/docs/flow.html#flow-builders
r
Thank you @Chrimaeon I'm gonna dig in this direction.