chore: send initial value to subscribers

This commit is contained in:
waterplea
2022-05-26 17:18:35 +03:00
committed by Lucy Cifferello
parent 770602169e
commit 440b1ba048

View File

@@ -33,6 +33,7 @@ export class Store<T extends { [key: string]: any }> {
const path = `/${args.join('/')}`
if (!this.watchedNodes[path]) {
this.watchedNodes[path] = new ReplaySubject(1)
this.updateValue(path)
}
return this.watchedNodes[path].asObservable()
}