You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current API has an IInitializeAsync which provides a convenient way to run async code during page initialization. However, there does not exists a similar implementation pattern if async initialization is needed for a region ViewModel
API Changes
Could possibly add an IRegionAwareAsync interface which implements:
We wait for the task before loading the view.. this would lead to a really awful user experience
We invoke this after the view loads. I'm unclear how this would really be of any benefit to you besides hiding async void. Keep in mind that these methods are effectively method handlers and async void is actually ok here.
Summary
The current API has an IInitializeAsync which provides a convenient way to run async code during page initialization. However, there does not exists a similar implementation pattern if async initialization is needed for a region ViewModel
API Changes
Could possibly add an IRegionAwareAsync interface which implements:
This would need a supporting call from the MvvmHelpers class
Intended Use Case
Provide a clean approach to implementing async code during initialization of a region view model
The text was updated successfully, but these errors were encountered: