天天看點

SAP Spartacus B2B List裡的listData$設計原理

UI components do not store response data from observables locally, which means destroy logic can be avoided. RxJS pipeable logic can be applied to implement any logic when data is observed.

Spartacus UI Component并不存儲從背景傳回的Observable資料。

一個最佳實踐:使用pipe結合tap,将stream裡的資料取出來,賦給this的某些字段:

SAP Spartacus B2B List裡的listData$設計原理
SAP Spartacus B2B List裡的listData$設計原理
SAP Spartacus B2B List裡的listData$設計原理
SAP Spartacus B2B List裡的listData$設計原理
SAP Spartacus B2B List裡的listData$設計原理