Join Slack
Powered by
what do you think about keeping the root component...
# decompose
a
Adam Brown
06/29/2023, 5:47 AM
what do you think about keeping the root component in a ViewModel to keep it alive over config changes?
a
Arkadii Ivanov
06/29/2023, 7:03 AM
Well, I advise again this approach, because you won't be able to supply any dependency that captures the activity context, etc. But if you really want, here is an example:
https://github.com/arkivanov/Decompose/discussions/331#discussioncomment-6268156
Arkadii Ivanov
06/29/2023, 7:29 AM
There seems to be an interest in this approach. I'll think if I could/should provide an API for this.
a
Adam Brown
06/29/2023, 4:03 PM
aha, got ya, thanks!
a
Arkadii Ivanov
07/01/2023, 9:35 AM
You requested it, I did it. 🙃
https://kotlinlang.slack.com/archives/C03H3N51SKT/p1688204101496749
a
Adam Brown
07/03/2023, 9:32 AM
haha awesome!
Open in Slack
Previous
Next