- All of DataStore internally uses event driven methods (observables) to handle everything from the sync process, to observing online connectivity. This makes the Storage Engine the single source of truth for DataStore.
- Examples:
- The Sync Engine observes DataStore Connectivity
- The Sync Engine observes the Storage Engine
- The client observes DataStore with
observe
andobserveQuery
:
- DataStore uses
zen-observable
- The RXJS docs do a good job of describing observables in more detail.