且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SAP Spartacus 3.3.0 s-s-r 的一个问题,当浏览器刷新时,s-s-r 失效

更新时间:2022-09-11 17:37:02

Dear experts,


I found one issue regarding Spartacus s-s-r in version 3.3.0.


I have created a sample store using schematics:


ng add @spartacus/schematics@latest --baseUrl https://spartacus-demo.eastus.cloudapp.azure.com:8443/ --baseSite=electronics-spa --s-s-r


And changed timeout value to 0 in server.ts:


SAP Spartacus 3.3.0 s-s-r 的一个问题,当浏览器刷新时,s-s-r 失效SAP Spartacus 3.3.0 s-s-r 的一个问题,当浏览器刷新时,s-s-r 失效I found out that when I access http://localhost:4000 in the first time, s-s-r works as expected: the static html page with 211kb is returned with all html code generated within app-root.


However when I refresh Chrome using F5 key, this time it seems s-s-r does not work any more - the selector app-root is empty in returned html code.


Is this a bug?


Please kindly refer to attached video for reproducing this problem.