Hello, I have a list of instruments in which each of them subscribes to a websocket so they get updated frequently. How would you observe such a frequently updating set of items with Compose?
I use
subscribeAsState
to collect the list but whenever there is an update in any element in the list, all item gets recomposed over and over so I am having flickers in the UI. I also pass a key per element down to
LazyList
Copy code
val instruments by instrumentList.subscribeAsState(initial = emptyList())