Florian
02/06/2021, 10:25 PMstateIn
operator so that a Flow that starts fetching new data doesn't cancel when we switch screens. But after that remote fetch is done, the Flow will keep emitting cached data from the DB (which could get updated indirectly from another screen) even if the fragment is not active.okarm
02/06/2021, 10:45 PM(List<DbModel>) -> ViewState
mapping off the main thread and forget about it.
Unless you're doing some very heavy computations or have many-Megabyte query results, in which case you might be wasting a little bit too much CPU or memory.
But I assume you aren't doing anything fancy, just like most of us.Florian
02/06/2021, 11:40 PMEwald
02/07/2021, 3:11 PMBut I assume you aren't doing anything fancy, just like most of us.
I feel seen 🤣