When will rememberSaveable's data actually be clea...
# compose
n
When will rememberSaveable's data actually be cleared?
s
It will be cleared only when user manually(but not the system) finishes the activity in which composition is being used, because it saves the state in bundles and bundles are cleared when user manually finishes the activity(mostly when finish() method gets called).
❤️ 1
z
Or if you're beneath a
SaveableStateHolder.SaveableStateProvider
, whenever the thing that owns the
SaveableStateHolder
calls
removeState
❤️ 1