I have a @Composable I want to be called at regular intervals (for instance once a second) to display some debug info. What's the best way to achieve this?
p
pawegio
01/27/2021, 2:39 PM
update debug info in regular interval, expose it as LiveData/BehaviourRelay/StateFlow and collect it as State in @Composable function so it will be recomposed