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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Router: Inconsistent behaviour with parent route parameters #1814

Open
MercinaM opened this issue Sep 13, 2023 · 0 comments
Open

Router: Inconsistent behaviour with parent route parameters #1814

MercinaM opened this issue Sep 13, 2023 · 0 comments
Assignees

Comments

@MercinaM
Copy link

馃悰 Bug Report

I'm using the route /first/second/:parameter/third, and I am noticing inconsistent behaviour in the router lifecycle hooks.

When I navigate to the route from /home via a link in the app, the "second" component receives the value of ":parameter", and the "third" component does not.

When I navigate to the route a second time while already on it, this time with a different value for ":parameter", both the "second" and "third" components receive the value of ":parameter".

When I refresh the browser (F5), only the "second" component received the value for ":parameter".

Repro link https://stackblitz.com/edit/au2-conventions-ms17rt

馃 Expected Behavior

The "third" component should either always receive the parent route parameters, or it should never receive them. I do not know which behaviour is expected, but it should definitely be consistent.

馃槸 Current Behavior

Inconsistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants