Is there working sample/example of how to use `onA...
# compose
a
Is there working sample/example of how to use
onActive
onCommit
onDispose
. I read the sample provided by google, yet not able to figure out how to use it in activity lifecycle. Can anyone explain with proper example how to use dispose with onActive and onCommit.
a
What are you trying to do? These have nothing to do with the activity lifecycle, though the activity lifecycle may drive parts of composition that will then lead to these being run.
a
Ohh okay
a
think of onCommit/onDispose as being more like onAttachedToWindow/onDetachedFromWindow for views