From 440b1ba048b5b72b07c8c0187cd52578e2d0030c Mon Sep 17 00:00:00 2001 From: waterplea Date: Thu, 26 May 2022 17:18:35 +0300 Subject: [PATCH] chore: send initial value to subscribers --- client/lib/store.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/lib/store.ts b/client/lib/store.ts index 6770703..32b316c 100644 --- a/client/lib/store.ts +++ b/client/lib/store.ts @@ -33,6 +33,7 @@ export class Store { const path = `/${args.join('/')}` if (!this.watchedNodes[path]) { this.watchedNodes[path] = new ReplaySubject(1) + this.updateValue(path) } return this.watchedNodes[path].asObservable() }