mobx-keystone
Advanced tools
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.Changelog
0.22.0
tProp
syntactic sugar for optional primitives with a default value.String
, Number
, Boolean
, null
, undefined
as aliases for primitive types.findParentPath
.Changelog
0.21.0
$
). This means that properties are now direct children of model objects, which should be cleaner and more understandable.Changelog
0.20.1
rootRef
resolution when the node cannot be resolved.Changelog
0.20.0
isRefOfType(ref, refType)
to check if a ref is of a given ref type.getRefsResolvingTo(node, refType?)
to be able to get back references that are currently pointing to a node.Changelog
0.19.0
setDefaultComputed
and getProviderNode
to contexts.getChildrenObjects
will now never report interim data objects ($
).getChildrenObjects
and onChildAttachedTo
.rootRef
s.Changelog
0.18.0
getRefId()
method that can be automatically used by custom references to get their ids, thus making getId
for custom references optional now.