July 2018
Beginner
236 pages
5h 34m
English
The other kind of observable value that you can have in an observable tree is the ComputedValue. This is different from an ObservableValue in many ways. An ObservableValue provides storage for the underlying atom and has its own value. All the data structures provided by MobX, such as Observable Object/Array/Map, rely on the ObservableValue to store the leaf-level values. ComputedValue is special in the sense that it does not have an intrinsic value of its own. Its value, as the name suggests, is computed from other observables, including other computed values:

This becomes evident in the definition of ComputedValue, where it ...
Read now
Unlock full access