Add lifecycle methods to ObservableRecipient #949
alejandroortega08
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be very useful if we included a powerful set of lifecycle methods. It would help track the state of the corresponding view and it can provide helper methods for more common functionality.
A good example would be a method called "Initialize" that is called after the native navigation has take place. It returns a Task, so can safely be marked async and used for heavy loading operations (such as hitting a backend API), without blocking the UI thread.
https://www.mvvmcross.com/documentation/fundamentals/viewmodel-lifecycle
Beta Was this translation helpful? Give feedback.
All reactions