feat: remove ionic storage

This commit is contained in:
waterplea
2022-09-28 11:55:54 +03:00
committed by Matt Hill
parent 6c3079786f
commit 4252297f59
2 changed files with 4 additions and 4 deletions

View File

@@ -31,10 +31,10 @@ export class PatchDB<T extends { [key: string]: any }> {
constructor(private readonly source$: Observable<Update<T>[]>) {}
async start(bootstrapper: Bootstrapper<T>) {
start(bootstrapper: Bootstrapper<T>) {
if (this.sub) return
const initialCache = await bootstrapper.init()
const initialCache = bootstrapper.init()
this.cache$.next(initialCache)
this.sub = this.source$