mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 10:21:53 +00:00
feat: remove ionic storage (#51)
This commit is contained in:
@@ -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$
|
||||
|
||||
Reference in New Issue
Block a user