mobx-keystone
Advanced tools
Changelog
0.41.0
setTime
, etc.) are reflected in the backed property (string / timestamp), so it is no longer required to treat dates as immutable objects.Changelog
0.40.0
ModelData
-> ModelPropsData
/ ModelInstanceData
, ModelCreationData
-> ModelPropsCreationData
/ ModelInstanceCreationData
.arrayAsSet
, arrayAsMap
, objectAsMap
) and collection models (ArraySet
, ObjectMap
). Check the "Maps, Sets, Dates" section in the docs for more info.types.tuple
.Changelog
0.39.0
decoratedModel
so the library can be used without decorators.Changelog
0.38.0
undoMiddleware
, where it wouldn't properly record changes outside a subaction after a subaction is performed.applyPatches
now supports arrays of arrays of patches.applyPatches
and applySnapshot
are more likely to reuse instantiated model objects whenever possible rather than recreating them anew (as long as their model types and ids match).isSandboxedNode
and getNodeSandboxManager
to be able to tell when a node is sandboxed / which is its sandbox manager (if any).Changelog
0.37.0
abstractModelClass
, which should not be needed anymore.modelClass
to better support base models with generics.Changelog
0.36.1
applySnapshot
not check by model instance in reconciliation for better compatibility with hot-reloading.ObjectMap.forEach
and ArraySet.forEach
typings.Changelog
0.36.0
declaration
option is set to true
in tsconfig.json
.Changelog
0.35.0
onAttachedToRootStore
and its disposer will be called after all actions are finished.onAttachedToRootStore
and its disposers are called in a more reliable manner.getRootPath
, getRoot
, getRootStore
are now internally computed, so they should be faster when being observed.Changelog
0.34.0
$modelType
as static property to model classes, as well as a better toString()
to model classes and instances for logging purposes.Changelog
0.33.0
onAttachedToRootStore
.applyPatches
for applying patches in reverse order.