C
Size: a a a
C
S
S
SV
L
L
getAllItems$().pipe(concatMap(items => this.itemAdded$.pipe(map(item => {
items.push(item)
return items.push
}))))
L
getAllItems
а не ждать еще когда itemAdded
$ заэмитит событиеL
Ti
S
getAllItems$().pipe(concatMap(items => this.itemAdded$.pipe(map(item => {
items.push(item)
return items.push
}))))
getAllItems$().pipe(
switchMap(items => {
items = items.slice();
return concat(
of(items),
this.itemAdded$.pipe(
map(item => {
items.push(item);
return items;
})
),
);
}),
);
L
getAllItems$().pipe(
switchMap(items => {
items = items.slice();
return concat(
of(items),
this.itemAdded$.pipe(
map(item => {
items.push(item);
return items;
})
),
);
}),
);
YK
И
YK
И
L
getAllItems$().pipe(
switchMap(items => {
items = items.slice();
return concat(
of(items),
this.itemAdded$.pipe(
map(item => {
items.push(item);
return items;
})
),
);
}),
);