young
young
1. 会包含不属于 KeepAlive 上传的内容 内部使用 fixedContext 维护所有已渲染过的 Context,如果页面渲染了包含 Context 的内容,那么在后续渲染 组件的时候实际 会包含 Context 的内容。 相关 [DEMO](https://codesandbox.io/s/react-activation-context-h2g74t?file=/src/App.js) > 复现流程:先访问子页面 B 刷新页面,然后切换到页面 A,可以看到页面 A 的 Keeper 渲染被包含在了页面 B 内部 Context 内 ```...
当前在使用 iframe 沙箱,偶现的存在主系统 document.querySelector 访问一个必然存在的节点时返回为空,导致程序崩溃 debug 发现主系统的 document.querySelector 也被代理了,在运行时依赖 currentAppName 表现行为不一致(currentAppName 存在时代理到子系统的 micro-app-body 内了) 继续排查发现是 IframeSandbox.start 阶段通过 patchElementAndDocument 进行了原型的更改,影响了全局 document 的行为 问题:1. iframe 沙箱内已经进行了 microDocument 的代理,为什么这里还需要进行 `patchElementAndDocument`(patchElementAndDocument 内依赖 throttleDeferForSetAppName 设置...