mobx-utils
Advanced tools
Changelog
5.5.0
Note: the minimum required MobX version for this release has been bumped to "mobx": "^4.13.1 || ^5.13.1"
actionAsync
(not to be confused with asyncAction
) as an alternative to flows, see #217 by xaviergonzfromPromise
, see #208 by Ricardo-MarquescomputedFn
now supports the standard options accepted by classic computed
, see #215 by hearndencreateViewModel
. See #216 by wrench7Changelog
5.2.0
createViewModel
now has an additional field changedValues
on the returned viewmodel, that returns a map with all the pending changes. See #172 by @ItamarShDev. Fixes #171 and #173fromPromise().case
: if the onFulfilled
handler is omitted, case
will now return the resolved value, rather than undefined
. See #167 by @JefHellemanscreateViewModel
will now respect the enumerability of properties. See #169 by dr0pChangelog
5.1.0
fromPromise
now accepts a second argument, a previous obsevable promise, that can be used to temporarily show old values until the new promise has resolved. See #160 by @ItamarShDevcreateTransformer
can now also memoize on function arguments, see #159 by @hc-12Changelog
5.0.1
sideEffects: false
field in package.json to enable maximal tree shaking for webpack..value
field is not available without having a type assertion of the state first