mobx-state-tree
Advanced tools
Changelog
0.9.4
types.null
and types.undefined
types.enumeration(name?, options)
Changelog
0.9.2
Introduced the concept of reverse patches, see #231
revertPatch
operation, that takes a patch or list of patches, and reverse applies it to the target.onPatch
now takes a second argument, includeOldValue
, defaulting to false
, which, if set to true, includes in the patch any value that is being overwritten as result of the patch. Setting this option to true produces patches that can be used with revertPatch
patchRecorder
now introduces additional fields / methods to be able to reverse apply changes: patchRecorder.cleanPatches
, patchRecorder.undo
Changelog
0.9.1
@APPLY_PATCHES
resp @APPLY_SNAPSHOT
. See #107types.maybe(types.frozen)
will now result into an error #224Changelog
0.9.0
applyPatches
and applyActions
. Use applyPatch
resp. applyAction
, as both will now also accept an array as argumentunprotect
and protect
can only be applied at root nodes to avoid confusing scenarios Fixed #180compose
couldn't overwrite getters. #209, by @homuraChangelog
0.7.2
cannot read property resolve of undefined
thanks to @cpunion for reporting, now value of dead nodes will be undefined. #186[LateType] is not defined
thanks to @amir-arad for reporting, when using late as model property type #187Object.freeze can only be called on Object
thanks to @ds300 for reporting, when using MST on a ReactNative environment #189