diff --git a/client/lib/patch-db.ts b/client/lib/patch-db.ts index cb428ac..8d669e9 100644 --- a/client/lib/patch-db.ts +++ b/client/lib/patch-db.ts @@ -24,12 +24,13 @@ export class PatchDB { } } = {} - readonly cache$ = new BehaviorSubject>({ - id: 0, - value: {} as T, - }) - - constructor(private readonly source$: Observable[]>) {} + constructor( + private readonly source$: Observable[]>, + readonly cache$ = new BehaviorSubject>({ + id: 0, + value: {} as T, + }), + ) {} start() { if (this.sub) return