You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@zombieJ for what it's worth, I've been dealing with this issue too, and don't believe it to be invalid. The provided codesandbox makes it a little hard to repro (you have to click on the right button then quickly try to hover on the left), but this occurs way more reliably on any <Select /> component as well (there, just clicking the component suffices to cause a full window freeze).
I've managed to narrow this down to the upgrade to [email protected], which was shipped with [email protected] (i.e. using ≤4.6.4 works fine alongside zone.js).
I believe that this is related to the usage of Resize Observer measures, which causes a Zone.js infinite loop.
I definitely don't think this is an invalid bug / issue, as it effectively prevents from using ant-design past version 4.6.4 (and therefore also blocks upgrading to React 17) on any web-app which uses Angular (which requires zone.js) somewhere in the app.
Please let me know if I can provide any more information.
@vicrep@zombieJ It's not resize observer cause, when import zone.js the setstate never refresh value,if use settimout instead promise.resolve() will slove
I'm developing an extension that allows the user to open an antd modal on a Twitter status page. Opening the modal the 1st time is fine but the second time will always fail on certain pages. The page also scrolls to the top when the modal opens. The patch here angular/angular#41506 (comment) seems to prevent that from happening.
Activity
xrkffgg commentedon Dec 25, 2020
你给的 codesandbox , 我看点开可以弹出
zombieJ commentedon Dec 25, 2020
zone.js会修改上下文,和 antd 本身无关。vicrep commentedon Jan 5, 2021
@zombieJ for what it's worth, I've been dealing with this issue too, and don't believe it to be invalid. The provided codesandbox makes it a little hard to repro (you have to click on the right button then quickly try to hover on the left), but this occurs way more reliably on any
<Select />component as well (there, just clicking the component suffices to cause a full window freeze).I've managed to narrow this down to the upgrade to
[email protected], which was shipped with[email protected](i.e. using ≤4.6.4 works fine alongside zone.js).I believe that this is related to the usage of Resize Observer measures, which causes a Zone.js infinite loop.
I definitely don't think this is an invalid bug / issue, as it effectively prevents from using ant-design past version 4.6.4 (and therefore also blocks upgrading to React 17) on any web-app which uses Angular (which requires zone.js) somewhere in the app.
Please let me know if I can provide any more information.
zombieJ commentedon Jan 6, 2021
@vicrep, you can fire issue to
zone.jsinstead since we do not have magic code on ResizeObserver. It's better forzone.jsto fix this loop issue.nuonuoge commentedon Apr 15, 2021
@vicrep @zombieJ It's not resize observer cause, when import zone.js the setstate never refresh value,if use settimout instead promise.resolve() will slove
olivewind commentedon Oct 21, 2021
实际测试下来:select + zonejs 或单独使用 rc-trigger + zonjs 会卡死。
但是使用 popover,dropdown 等同样依赖 rc-trigger 却不会卡死,看起来比较像是 rc-select 有 bug.
nopol10 commentedon Jan 4, 2022
I'm developing an extension that allows the user to open an antd modal on a Twitter status page. Opening the modal the 1st time is fine but the second time will always fail on certain pages. The page also scrolls to the top when the modal opens. The patch here angular/angular#41506 (comment) seems to prevent that from happening.
yanhaijing commentedon Nov 5, 2022
react-component/trigger@017131d?diff=split
新的rc-trigger改成了useEffect实现,测试已经不存在这个问题了