mobx-keystone
Advanced tools
Changelog
0.45.3
onAttachedToRootStore
will still be invoked after all model actions are finished (as it was before), but now before other user reactions are triggered.Changelog
0.45.2
allowUndefinedArrayElements
now also applies to frozen data.Changelog
0.45.1
Changelog
0.45.0
allowUndefinedArrayElements
global config option to allow arrays to take undefined
elements.Changelog
0.44.0
assertIsTreeNode
, which asserts if an object is a tree node or throws otherwise.Changelog
0.43.1
Changelog
0.43.0
applyCall
has been renamed to applyMethodCall
- consider using fnObject.call
though.arrayAsMap
, ArrayAsMap
were removed (see asMap
for a replacement).arrayAsSet
, ArrayAsSet
were removed (see asSet
for a replacement).objectAsMap
, ObjectAsMap
were removed (see asMap
for a replacement).asMap
and asSet
, which are similar to the old arrayAsMap
, etc. except that they take the data object directly.fnModel
as a functional alternative to models that do not require $modelId
or $modelType
(see the relevant section on the docs for more info).tag
to be able to tag objects with extra data (useful for functional models for example).fnObject
and fnArray
to be able to directly manipulate objects/arrays without the need of predefined model actions.Changelog
0.42.0
setterAction
so that it automatically implenents model prop setters wrapped in actions.applySet
, applyDelete
, applyCall
to be able manipulate data without the need to use modelAction
.