refine startup alerts, reversions in mocks

This commit is contained in:
Matt Hill
2021-07-16 17:58:53 -06:00
committed by Aiden McClelland
parent 3ddfcd7895
commit 65c4db09f3
18 changed files with 473 additions and 314 deletions

View File

@@ -20,7 +20,6 @@ export enum ConnectionStatus {
})
export class PatchDbService {
connectionStatus$ = new BehaviorSubject(ConnectionStatus.Initializing)
sequence$: Observable<number>
data: DataModel
private patchDb: PatchDB<DataModel>
private patchSub: Subscription
@@ -33,10 +32,7 @@ export class PatchDbService {
async init (): Promise<void> {
const cache = await this.bootstrapper.init()
console.log('CACHECACHE', cache)
this.patchDb = new PatchDB([this.source, this.http], this.http, cache)
this.sequence$ = this.patchDb.store.sequence$.asObservable()
this.data = this.patchDb.store.cache.data
}