Skip to content

ViewModelStoreBase class ​

This is the base implementation of the ViewModelStore interface.

Reference to source code

Methods and properties ​

Here is documentation about base implementation methods and properties.
If you need to read about ViewModelStore interface methods and properties, go here.

viewModels (protected) ​

Map structure with created ViewModel instances in application.

instanceAttachedCount (protected) ​

ViewModel instances count attached (method attach()) to current store

mountingViews (protected) ​

A Set with ViewModel ids which views are waiting for mount

unmountingViews (protected) ​

A Set with ViewModel ids which views are waiting for unmount

viewModelsTempHeap (protected) ​

A Map with temp heap vm instances
Is needed to get access to view model instance before all initializations happens

vmConfig (protected) ​

ViewModelsConfig

getOrCreateVmId(model) ​

Returns the model’s id, assigning one with the store’s configured generateId when it was missing. Used by attach, mount, and related flows; override the store only if you extend ViewModelStoreBase and need the same behaviour.

Released under the MIT License.