Are there any plans to support memo across config changes or would that just be wrong?
Copy code
val model = +memo { CardEditorModel() }
a
Adam Powell
01/14/2020, 9:55 PM
Yes, we're investigating this. Worst case it'll be a different function name to opt-in but I'd like to see if we can do it by default if possible.
🙏 6
i
Ian Warwick
01/14/2020, 10:33 PM
Nice 🙂 that would be very cool!
t
Tash
01/14/2020, 10:35 PM
Would this lead to a direction where any state management in general across config changes/Activity recreation becomes trivial if your whole UI is using Compose?
👌 1
i
Ian Warwick
01/14/2020, 10:39 PM
I think so yep as simple as a plain old data class I guess
t
Tash
01/15/2020, 1:25 AM
Yeah having this would be very cool. Hopefully with Compose, there wont be any more contention as to what to do during config changes/Activity recreation.
a
Adam Powell
01/15/2020, 2:24 AM
if your whole activity is compose there's no reason to leave activity recreation enabled in the first place