mobx-keystone
Advanced tools
Changelog
0.25.3
applySerializedActionAndTrackNewModelIds
so it won't track $modelId
changes for plain objects.Path
and PathElement
types.Changelog
0.25.2
onResolvedValueChange
not working when references were being restored from a snapshot.Changelog
0.25.1
applySerializedActionAndTrackNewModelIds
so it doesn't traverse frozen values.Changelog
0.25.0
applySerializedActionAndTrackNewModelIds
and applySerializedActionAndSyncNewModelIds
. Prefer those over deserializeActionCall
plus applyAction
when applying serialized (over the wire) actions in order to avoid $modelId
desynchronization.getRefId()
which returns $modelId
.Changelog
0.24.1
Changelog
0.24.0
$modelId
to model creation data to override it rather than using a special symbol.overrideRootModelId
to fromSnapshot
and clone
, but made $modelId
in models editable instead.Changelog
0.23.2
overrideRootModelId
to fromSnapshot
and clone
.Changelog
0.23.0
$modelId
extra property to models and their snapshots in order to be able to properly validate targets of serialized actions in scenarions with concurrent clients. Also allows the automatic optimization of the serialized version of models in action parameters by substituting them to just their paths + path of ids whenever possible.null
.serializeActionCall
, serializeActionCallArgument
, deserializeActionCall
and deserializeActionCallArgument
now can take a second parameter with the root node of the model where actions are going to be performed to optimize the serialization of arguments that are already in the store.registerActionCallArgumentSerializer
for serialization of custom action argument types.ActionContext
now includes targetPathIds
.pathObjects
to getRootPath
.fromSnapshot
model methods.propTransform
.arrayAsMap
now supports arbitrary key types.