Add lifecycle methods to ObservableRecipient #2196
Closed
alejandroortega08
started this conversation in
New Feature Discussions
Replies: 1 comment
-
I think you want the repository over at https://github.com/communitytoolkit/dotnet as that is where |
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
Uh oh!
There was an error while loading. Please reload this page.
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