as observable

This commit is contained in:
Matt Hill
2021-07-19 16:35:48 -06:00
parent 4e756be082
commit ceb5cd1af7

View File

@@ -34,7 +34,7 @@ export class Store<T> {
if (!this.watchedNodes[path]) { if (!this.watchedNodes[path]) {
this.watchedNodes[path] = new BehaviorSubject(getValueByPointer(this.cache.data, path)) this.watchedNodes[path] = new BehaviorSubject(getValueByPointer(this.cache.data, path))
} }
return this.watchedNodes[path] return this.watchedNodes[path].asObservable()
} }
update (update: Update<T>): void { update (update: Update<T>): void {