Skip to content
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

fix(router-component): enhance active route comparison #87

Merged
merged 1 commit into from
Feb 11, 2021

Conversation

meeroslav
Copy link
Collaborator

Current implementation compares path and exact parameter causing two routes presented with ngIf/else logic to be treated the same and therefore canceling the rerender.

The new implementation compares inner routes as a whole.
Additionally, the same comparison can be used for the addition/removal of routes. This pushes the responsibility of avoiding duplicate routes to the user.

@meeroslav meeroslav added the bug Something isn't working label Feb 6, 2021
@brandonroberts brandonroberts merged commit af8b7b7 into master Feb 11, 2021
@brandonroberts brandonroberts deleted the f/route-restrictions-else-fix branch February 11, 2021 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants