mst-async-store
An opinionated asynchronous store and container implementation for mobx-state-tree.
Reasoning
One of the most common challenges when implementing a store solution is how to handle asynchronous data sets. mst-async-store aims to simplify this by allowing you to create powerful asynchronous stores in a matter of seconds. An mst-async-store implements the most common fetch patterns and support fetch queues, fail states and time to live out of the box.
It's as simple as this:
;;; // Generate store model; // Instantiate store; // Ask the store to return container with id 'foo';whencontainer.isReady,;