Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
RouterLinkActive race condition with RouterLink created dynamically from template ref #18983
I'm submitting a...
This is manifested in the following plunker: http://plnkr.co/edit/iio3c6erK8H3qtn93l7c?p=preview
Apologies if the reproduction is not minimal enough. When
It appears that router's update function is called twice: when the router link is created from the
The router link active should reflect
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Caused a bug in the Angular Material CDK Table. See issue here: angular/components#6701
Any chance the fix for this introduced an infinite loop of some sort (seems like in recent history RouterLinkActive was prone to that already). With 4.4.6 I'm experiencing a hang and 100% CPU when using a component that pretty much only uses RouterLinkActive. On 4.4.5 it works fine and the 4.4.6 changelog is pretty small.
This issue has been automatically locked due to inactivity.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.