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
{{ message }}
Repository navigation
when use zone.js & ant design, the page will Endless loop #41506
use with rc-trigger v4.5.0,when import zone.js the setstate never refresh value, endless loop,if use settimout instead promise.resolve() will slove, But I don't know this is caused by zone.js Or trigger
@nuonuoge , I can not reproduce (click the popover and the click button`, popup menu is displayed correctly), could you give more details steps to reproduce the issue?
For the two React reproductions above in this thread, adding import 'zone.js/plugins/zone-patch-message-port';BEFOREimport ... from 'react-dom' also does the fix.
Unfortunately for old version's antd Select, zone-patch-message-port is not enough. There seems some other issues about ResizeObserver or maybe #44446. But the latest antd(4.17.3) seems compatible as I tried.
Reacted by Aleksey Ostapenko, tianqingfeiyu, 张建新 and Austin Martin
Activity
nuonuoge commentedon Apr 16, 2021
use with rc-trigger v4.5.0,when import zone.js the setstate never refresh value, endless loop,if use settimout instead promise.resolve() will slove, But I don't know this is caused by zone.js Or trigger

JiaLiPassion commentedon Apr 22, 2021
@nuonuoge , I can not reproduce (click the
popoverand theclickbutton`, popup menu is displayed correctly), could you give more details steps to reproduce the issue?nuonuoge commentedon Apr 22, 2021
@JiaLiPassion https://stackblitz.com/edit/react-mfqbxp you can use this repo, sometimes it's work, you can reopen it times, when click this page will endless loop
delete zone.js,it's work
JiaLiPassion commentedon May 4, 2021
@nuonuoge , I can reproduce now, it is an edge case, I will try to figure out how to make a workable solution...
nuonuoge commentedon May 10, 2021
@JiaLiPassion when use micro-frontends(angular&vue&react), it's a big side effects, hope can be resolved quickly
Archao-ME commentedon May 17, 2021
I have the same issues too.
imcuttle commentedon May 18, 2021
has the same issues too +1
sunny15100 commentedon May 20, 2021
the same issues when use micro-frontends
imcuttle commentedon May 25, 2021
I guess the issue is because of single-spa's side effect.
single-spa/single-spa-angular#113
3 remaining items
olivewind commentedon Oct 21, 2021
@kbakba thanks,it works for me
xiaody commentedon Dec 6, 2021
I managed to create a reproduction without ant design, but havn't figured out why this happens.
https://stackblitz.com/edit/react-ylox6f
xiaody commentedon Dec 11, 2021
After quite some debugging, I made a pure JS reproduction without any React thing https://stackblitz.com/edit/angular-41506 .
This reproduction kinda simulates React's scheduler and invoke guard, and obviously
zone-patch-message-portfixes the issue.For the two React reproductions above in this thread, adding
import 'zone.js/plugins/zone-patch-message-port';BEFOREimport ... from 'react-dom'also does the fix.--> https://stackblitz.com/edit/react-hisbdi?file=src%2Findex.js fixed
--> https://stackblitz.com/edit/react-zyezvq?file=src%2Findex.js fixed
Unfortunately for old version's antd Select,
zone-patch-message-portis not enough. There seems some other issues about ResizeObserver or maybe #44446. But the latest antd(4.17.3) seems compatible as I tried.JiaLiPassion commentedon Mar 5, 2022
Sorry for the late reply, I created a PR to fix this one.
Sherry-Lee commentedon May 23, 2022
Is this issue solved? I'm using the angular 11 and ant, still facing the same problem :(
yanhaijing commentedon Nov 5, 2022
react-component/trigger@017131d?diff=split
新的rc-trigger改成了useLayoutEffect 实现,测试已经不存在这个问题了
au-z commentedon Dec 1, 2022
@nuonuoge - wondering if you were able to resolve the issue? I am seeing the same in my own micro-front-end app.
yanhaijing commentedon Dec 2, 2022
Two ways to solve the problem:
angular-automatic-lock-bot commentedon Jan 2, 2023
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.