- SAP 电商云 Spartacus UI 根据 CMS Comp
- SAP 电商云 Spartacus UI 的 Product C
- 网站上的 breadcrumb 使用场景浅析
- SAP UI5 sap.ui.vk 命名空间内的控件介绍
- HTML 按钮(button)的 disable 属性和 dis
- SAP 电商云 Spartacus UI 产品搜索结果的设计明细
- SAP 电商云 Spartacus UI Proxy Facad
- Angular @Injectable 注解的工作原理浅析
- 关于 Angular 部署以及 index.html 里 bas
- SAP 电商云 Spartacus UI 从 CMS 取回 sl
uid:LanguageComponent


getComponentData 内部会调用 createComponentData:

如果当前不可用,会加载:



最终从 NgRx store 即内存存储中读取的 Component 数据:

那么从概念上说,这些数据一定是对应的 effect 调用 OCC API 从 Commerce Cloud 后台读取,并且使用 reducer 添加到 Store 里的。
这里就是 Effect 读取成功的代码位置:

运行时调试发现:

Home page 下所有的 CMS Component,一次性被读取回来了:



更多Jerry的原创文章,尽在:"汪子熙":

网友评论