-
Notifications
You must be signed in to change notification settings - Fork 152
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
Infinite router redirect loop #5
Comments
Hey @MykolaShevchuk, I have seen issues sort of similar to this but have struggled to replicate the issue. I just tried this again on coexisting-angular-microfrontends.surge.sh, but was unable to see the problem. Any tips on how to get this to happen consistently? I would definitely like to fix the problem. |
Thank you @joeldenning. I can reproduce it on http://coexisting-angular-microfrontends.surge.sh Steps to reproduce:
|
I was able to replicate this error only one time after about 20 attempts. Afterwards, I upgraded all of the single-spa applications in this repo to Angular 8. Could you verify if you can still replicate the error, now that everything is upgraded to Angular 8? I think I don't know the click timing as well as you do 😄 |
Hello Joeldenning, |
@nashvillenarayan any information that you could provide that would help me replicate this issue reliably would be appreciated. |
@joeldenning I've just tested updated version with angular8. Unfortunately, it's still reproducible. |
Hmm I will try to find some time to figure out how to make this consistent to reproduce. |
I just tried to recreate the problem and was unable to do so. Until there is a way to consistently demonstrate the problem, I will be unable to fix it. |
Hi Joeldenning, |
👍 I'll check it out the next time I get a chance. |
Hi @joeldenning, I'm also experiencing this issue; Things I've found which assist with reproduction: |
Have opened this ticket with more details: |
I do not have time to work on this issue. In the past I've spent >30 hours trying to get Angular Router and ZoneJS to not behave weirdly. The root cause of the bug is that ZoneJS monkey patches all of the native browser functions and makes assumptions about who is calling those functions (and when) that do not hold true with single-spa. I have little interest in attempting to work on this issue again in the near future, since I'm swamped with other work and this bug is a frustrating one I've already lost a lot of time to. I would gladly accept a PR from the community to fix this. Since we now have single-spa/single-spa-angular#113, I'm going to close this issue in favor of that one. |
I've noticed one critical issue with a router in "coexisting-angular-microfrontends" project:
When I switch quickly from app1 to app2 and switch back to app1 before app2 was completely loaded and rendered I'm getting into an infinite redirect loop.
Here is a demo:
Could you suggest anything?
Thank you!
The text was updated successfully, but these errors were encountered: