Ensures a unique instance per component of the given type is created and watches the view model for changes. Returns the view model instance.
function useViewModelType<TViewModel extends INotifyPropertiesChanged>(viewModelType: ViewModelType<TViewModel>, watchedProperties?: readonly (keyof TViewModel)): TViewModel
keyofTViewModel>, optional, a render will be requested when only one of these properties has changed.
Returns the initialized view model instance, unique per component lifecycle.