Alex
Alex
@manisenkov But still helpful
vote for it 👍
vote for it
Does this issue have any update?
我寻思这个不是目标函数内部实现吗
### 背景: 我们当前的case是由于一些问题(比如接口的变动导致一些数据不存在,但是未及时处理等),很可能在子应用内会产生一些渲染错误,为了避免影响到其他子应用和子应用内的其他页面,需要在子应用层面启用errorboundary,我们希望能够通过主应用传入AppRoute的error component来管理这个errorBoundary。 ### 设计方案: 我们朴素的想法是通过和renderNotFound相似的方式,通过事件进行通信,由子应用通过在ErrorBoundaryFallback中调用renderError来调起主应用传入的error component页。 PR: [feat: add renderError method to icestark/app](https://github.com/ice-lab/icestark/pull/661)
还没写文档...我抽空加一下
另外 由于配置了sourceMap,所以如果通过ip访问依然会在sourceMap的作用下访问到localhost,并报错: Access to script at 'http://localhost:2337/js/src_pages_xxxxx_index_tsx-src_pages_xxxx_api_ts--857fc7.js' from origin 'http://xxxx.test.xxx.qa' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private...
workacround: https://stackoverflow.com/questions/69542810/has-been-blocked-by-cors-policy-the-request-client-is-not-a-secure-context-and > FIX: You can either serve the content behind HTTPS, or else in your browser flags (eg chrome://flags) disable Block insecure private network requests 但是可能马上就用不了了 according to https://developer.chrome.com/blog/private-network-access-update/
建议:增加主应用在dev/test模式下的配置 Register for the deprecation trial To participate with multiple origins (such as examplepetstore.com and example-pet-store.com), repeat these steps for each origin. Click [Register](https://developer.chrome.com/origintrials/#/view_trial/4081387162304512001) for the Private Network Access from...