Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

update behaviorsubject value without emitting

this.mySubject.next({propagate: false, value: 42});

makeObservable() {
   return this.mySubject.pipe(filter(x => x.propagate));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #behaviorsubject #emitting
ADD COMMENT
Topic
Name
1+7 =