MobX v4.2.0 Release Notes
-
- ๐ Introduced
configure({ enforceActions: "strict" })
, which is more strict thenenforceActions: true
, as it will also throw on non-observed changes to observables. See also #1473 - ๐ Fixed #1480: Exceptions in the effect handler of
reaction
where not properly picked up by the global reaction system - โก๏ธ Fixed a bug where computed values updated their cached value, even when the comparer considered the new value equal to the previous one. Thanks @kuitos for finding this and fixing it! #1499
- ๐ Undeprecated
ObservableMap
, fixes #1496 - ๐ Observable arrays now support
Symbol.toStringTag
(if available / polyfilled). This allows libraries like Ramda to detect automatically that observable arrays are arrays. Fixes #1490. Note thatArray.isArray
will keep returning false for the entire MobX 4 range. - ๐ง Actions are now always
configurable
andwritable
, like in MobX 3. Fixes #1477 - ๐ Merged several improvements to the flow typings. #1501 by @quanganhtran
- ๐ Fixed several accidental usages of the global
fail
, by @mtaran-google through #1483 and #1482
- ๐ Introduced