Thread
#compose
    Marcin Środa

    Marcin Środa

    2 years ago
    How to deal with lifecycle in Composable? I’ve based on
    onActive
    /
    onCommit
    /
    onDispose
    , but what about something similar to
    onPause
    /
    onResume
    ? I’m looking for something that will tell me that the activity has gone background / foreground.
    flosch

    flosch

    2 years ago
    You can look into
    LifecycleOwnerAmbient
    if you used
    Activity.setContent
    Although I would try to not let Activtiy lifecycle bleed too much into composables…