Emits undefined and completes. Completes without emitting if store is already destroyed.
Returns Observable<void>
getAll
getAll(): Observable<T[]>
Get all stored documents.
Returns
When have some documents stored: emits once and completes.
When no documents are stored or the store is destroyed: completes without emitting.
Returns Observable<T[]>
observeAll
observeAll(): Observable<T[]>
Similar to getAll, but does not complete. Instead, emits every time the collection is updated (via this store object).
Emits empty array when no documents are stored.
Returns Observable<T[]>
setAll
setAll(docs: T[]): Observable<void>
Store the full set of documents.
getAll() after setAll(docs) should return the same set of 'docs'.
Should never throw.
Returns
Emits undefined and completes. Completes without emitting if the store is destroyed.
Clear all resources used by the store.
Returns
Emits undefined and completes. Completes without emitting if store is already destroyed.