mobx-state-tree
Advanced tools
Changelog
3.16.0
fromSnapshot
option. #1410 by @k-g-amaxHistoryLength
to the UndoManager
, implements #1417 through #1426 by @tibotiber.flow
, fixes #1378 through #1409 by @nulladdictcreateObservableInstanceIfNeeded
would execute an action, even if the function immediately returned. (significant since the extraneous actions would pollute the mobx dev-tools on mere accesses, eg. by ComplexType.prototype.getValue) Fixes #1421 trough #1422 by @VenryxsnapshotProcessor.is
does not correctly handle model instances. Fixes #1494 through #1495 by @KevinSjobergsetImmediate
to be present, but fallback to other solutions. #1501 by @isaachinmanChangelog
3.15.0
castFlowReturn
becomes deprecated.Changelog
3.14.1
ENABLE_TYPE_CHECK=true
as environment variable. Fixes #1332 through #1337 by @OverseePublicType.is
doesn't behave correctly for types that has snapshot processors. Fixes #1321 through #1323 by @Tucker-EricSTNValue
type, to fix TS 3.5.3 compatibility. If somebody notices regressions in the TypeScript integration, please report. Fixes #1343, #1307acceptsUndefined
as option for safeReference
so it is more suitable to be used inside arrays/maps, through #1245 by @xaviergonz.Changelog
3.14.0
atomic
middleware with async flows #1250.recordActions
to filter out recording some actions. Also added recording
and resume
methods.getRunningActionContext()
to get the currently executing MST action context (if any). Also added the action context helper functions isActionContextChildOf()
and isActionContextThisOrChildOf
.types.create
is no longer smart enough in TS to know if skipping the snapshot parameter is valid or not. Through #1251 by @xaviergonz.Changelog
3.13.0
Instance<typeof variable>
not giving the proper type in Typescript when the type included both objects and primitives.createActionTrackerMiddleware2
, a more easy to use version of the first one, which makes creating middlewares for both sync and async actions more universal.recordPatches
to be able to skip recording certain patches.atomic
now uses the new createActionTrackerMiddleware2
.UndoManager
fixes and improvements:
createActionTrackerMiddleware2
.clearUndo
and clearRedo
to only clear those.undoLevels
and redoLevels
to know how many undo/redo actions are available.withoutUndo
so it will only skip recording what is inside, not the whole action - fixes #1195.Changelog
3.12.2