qiankun
qiankun copied to clipboard
strictStyleIsolation开启之后,子应用版本低于React17,子应用合成事件全部失效
What happens?
A clear and concise description of what the bug is.
Mini Showcase Repository(REQUIRED)
Provide a mini GitHub repository which can reproduce the issue.
How To Reproduce
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
Context
- qiankun Version:
- Platform Version:
- Browser Version:
https://github.com/umijs/qiankun/issues/589 已知的问题,shadow dom 特性如此,解决办法:react-shadow-dom-retarget-events
实际上 shadow dom 需要解决的问题还有很多,例如 https://github.com/umijs/qiankun/pull/1061
升级到react17之后,合成事件可以生效,没有出太大的问题,目前shadowdom这个属性推荐在生产环境下使用吗
升级到react17之后,合成事件可以生效,没有出太大的问题,目前shadowdom这个属性推荐在生产环境下使用吗
不建议用,适用场景非常少,后续会移除这个功能
坑死了,明面上给出的API,问题这么大
个人认为 strictStyleIsolation 是一个很好的特性。