Basically I\'m trying to inflate BehaviorSubject<[]> with array of data which will be loaded in chunks.
BehaviorSubject<[]>
BehaviorSubject<[]> wil
Instead of using concat, you can instead use the spread operator:
concat
data = new BehaviorSubject([]); addData(foo: any): void { this.data.next([...this.data.getValue(), ...foo]) }
I've found this to be a bit more readable than a straight concat