[UI] Lifetime handling #12666
SuperJMN
started this conversation in
Ideas for future
Replies: 1 comment
-
I mainly agree with all your points, however my biggest concerns with the idea of "just move everything to the constructor" are:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @zkSNACKs/ui-team.
I've been reflecting on our conversation about the 'Activatable' pattern for our ViewModel lifecycle management, and I wanted to share some additional thoughts. While the efficiency and control over activation timing are clear advantages in some scenarios, there are a few risks and complexities that we might be overlooking:
These concerns are regarding Activatable, but they're applicable to OnNavigatedTo.
Given these considerations, I think it's crucial we weigh the benefits of 'Activatable' against these potential complexities. It might be beneficial to explore other approaches that keep our ViewModel lifecycle management simple, robust, and within the bounds of SRP. I'm looking forward to discussing this further and hearing your perspectives on how we can best address these challenges.
Thanks for taking the time to consider these points.
Beta Was this translation helpful? Give feedback.
All reactions