Reading the source code (currently beta09), I find...
# compose
e
Reading the source code (currently beta09), I find that the
WrappedComposition
will
dispose
when the lifecycle is destroyed (lifecycle event
ON_DESTROY
is observed). Considering that the onDestroy callback of an Activity may not be called in some critical situations, I wonder why the
ON_STOP
event is not a better choice? (Not sure if it is appropriate to ping @Ian Lake for this question …)
a
those critical situations are when the process is being killed, at which point gracefully disposing of the composition is not necessary
☝️ 1
🙏 1