-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]angular10作为主应用页面如果url切换的比较快会出现路由不停的跳转进入死循环 #1388
Comments
貌似升级 single-spa 可以解决 #1291 (comment) |
single-spa 升到 5.9.2 还是会复现 |
使用原生的跳转方法,比如window.location.hash |
项目history模式路由不适用 |
这个问题去年我也遇到过#775 ,应该是single spa的问题,后来不得已就放弃了。我试过single spa的react基座和纯html的基座都没问题,angular的基座也是同样的问题。 |
angular 16 没有碰到这个问题,使用的是single spa 5.9.5. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happens?
ng10含有lazyload module时, url变化过快,跳转进入死循环,项目越大越明显。
最小可复现仓库
https://github.com/Xiaoxiasuper/angular-qiankun-base-demo.git
复现步骤,错误日志以及相关配置
路由就会不断跳转。
demo太小达不到量级,就在component的ngOnInit()里切换路由重现问题。
如果去掉qiankun的子应用注册相关,则能正常跳转
相关环境信息
The text was updated successfully, but these errors were encountered: