OP
Size: a a a
OP
А
RY
wm
M
НЧ
AT
getAddressList(): Observable<Address[]> {
return this.baseSiteService.getActive().pipe(
distinctUntilChanged(),
tap(() => {
this.loadAddressList();
}),
withLatestFrom(this.store.pipe(select(CheckoutSelectors.getAddressList))),
map(([, addresList]) => addresList),
shareReplay({ bufferSize: 1, refCount: true })
);
}AT
ЕВ
DM
M
J

AT
getAddressList(): Observable<Address[]> {
return using(
() =>
this.baseSiteService
.getActive()
.pipe(
distinctUntilChanged(),
tap(() => {
this.loadAddressList();
})
)
.subscribe(),
() => this.store.pipe(select(CheckoutSelectors.getAddressList))
).pipe(shareReplay({ bufferSize: 1, refCount: true }));
}AT
ДМ
AT
ДМ
ДМ
KS