Are there any plans to support memo across config ...
# compose
i
Are there any plans to support memo across config changes or would that just be wrong?
Copy code
val model = +memo { CardEditorModel() }
a
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
Nice 🙂 that would be very cool!
t
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
I think so yep as simple as a plain old data class I guess
t
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
if your whole activity is compose there's no reason to leave activity recreation enabled in the first place
👍 3
🙏 3
😍 6