State and Jetpack Compose says "While remember helps you retain state across recompositions, the state is not retained across configuration changes. For this, you must use rememberSaveable." On this channel, we've said that setting `android:configChanges`(as listed here) to handle the configuration changes would allow us to use plain old
remember
. Is it better to do the former or the latter?
c
Colton Idle
01/31/2022, 4:47 PM
Even if you override all config changes you can still be restarted. See @Mark Murphy post on dynamic wallpapers.
r
Rick Regan
01/31/2022, 4:53 PM
(I didn't state it in my question but I am talking about when you don't need the `remember`ed thing to also survive process death.)
a
Andrey Kulikov
01/31/2022, 6:10 PM
if you don’t need the data to survive process death then your idea of remember+config changes would work fine