mobx_utils library
Classes
Functions
-
lazyObservable<
T> (dynamic fetch(dynamic sink(T newValue)), T? initialValue) → LazyObservable< T> -
lazyObservable
creates an observable around afetch
method that will not be invoked until the observable is needed the first time. The fetch method receives asink
callback which can be used to replace the current value of the lazyObservable. It is allowed to callsink
multiple times to keep the lazyObservable up to date with some external resource.