mobx-state-tree
Advanced tools
Changelog
3.12.1
getEnv
sometimes not returning the proper environment.map.put
would not work with snapshots of types with an optional id #1131 through #1226 by @xaviergonz.Changelog
3.12.0
TypeOfValue<typeof variable>
to extract the type of a complex (non primitive) variable in Typescript.getNodeId
to get the internal unique node id for an instance #1168 through #1225 by @xaviergonzpop
/shift
/splice
from an array not getting properly destroyed through #1205 by @xaviergonz. Not that this means that in order to access the returned dead nodes data without getting a liveliness error/warning then the returned dead nodes have to be either cloned (clone
) or their snapshots (getSnapshot
) have to be used first.Changelog
3.11.0
types.optional
that allows to set alternative optional values other than just undefined
through #1192 by @xaviergonztypes.snapshotProcessor
#947 through #1165 by @xaviergonz. This feature will eventually deprecate postProcessSnapshot
and preProcessSnapshot
from models in a next major version.Changelog
3.10.2
Changelog
3.10.1
Changelog
3.10.0
castFlowReturn
not typecasting the promise to its actual result.isAlive(node)
reactive, so it can be reacted upon through #1100 by @xaviergonzclear()
to UndoManager
middleware through #1118 by @chemitaxisChangelog
3.9.0
flow
arguments and return types are now correctly inferred automatically. One exception is when the last return of a flow
is a Promise
. In these cases castFlowReturn(somePromise)
needs to be used so the return type can be inferred properly.create
method is now smart enough to warn when no snapshot argument is provided on types that have some mandatory properties.setLivelinessChecking
and getLivelinessChecking
, the old setLivelynessChecking
will eventually be deprecated.onInvalidated
option for references and types.safeReference
(see readme) through #1091 by @xaviergonztryReference
and isValidReference
to use references that might be no longer pointing to any nodes in a safe way through #1087 by @xaviergonzIComplexType
for backwards compatibility.Changelog
3.8.0
addDisposer
return the passed disposer through #1059 by @xaviergonzChangelog
3.7.1