July 2018
Beginner
236 pages
5h 34m
English
The changes you make to an observable are not applied immediately by MobX. Instead, they go through a layer of interceptors that have the ability to keep the change, modify it, or even discard it completely. This is all possible with the intercept() API. The signature is very similar to onBecomeObserved and onBecomeUnobserved, with the callback function (interceptor) giving you the change object:
observable: A boxed observable or an observable object/array/map.
property: The optional string name of the property you want to intercept on the observable. As we saw earlier for onBecomeObserved and onBecomeUnobserved, there is a difference ...
Read now
Unlock full access