Thread
#compose
    Francois Morvillier

    Francois Morvillier

    1 year ago
    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?
    pawegio

    pawegio

    1 year ago
    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