David W
04/05/2022, 4:17 PMSnapshotStateMap
seems like the ideal way to expose it to the UI, but I can't use that in my non-compose module.
StateFlow<Map<T, V>>
seems like the only option, but that emits the entire map on each change, rather than only what changed about it.
Any other better options? I could make a SnapshotStateMap
observe the StateFlow
but that's kinda gross, right?Kirill Grouchnikov
04/05/2022, 4:27 PMDavid W
04/05/2022, 4:27 PMDavid W
04/05/2022, 4:28 PMDavid W
04/05/2022, 4:28 PMDavid W
04/05/2022, 4:29 PMKirill Grouchnikov
04/06/2022, 3:33 PM