ViewModelFactory - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / ViewModelFactory<TViewModel> alias
Represents a view model factory callback.
type ViewModelFactory<TViewModel extends INotifyPropertiesChanged | null | undefined>
= () => TViewModel;
Source reference: src/hooks/UseViewModelMemo.ts:11
.
-
TViewModel - The type of view model to create.
Type constraints: INotifyPropertiesChanged |
null
|undefined
.