Skip to content

State change causes reload of abstract state controller when query parameters are set #1551

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

Closed
mafredri opened this issue Nov 17, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@mafredri
Copy link

Updating ui-router to 0.2.12 I noticed that state changes between an abstract-states children causes the abstract controller to reload when there are query-parameters set. I created a plunker to demonstrate the effect. At first you can change states between overview and test, but after you set a query parameter it causes the controller to reload on every state change.

This also seems to be a problem when a query parameter is undefined (currently the plunker loads with query=0 which allows it to work in the beginning).

PS. Is there a way around this? I would like to update to 0.2.12 but this is a real blocker at the moment.

http://plnkr.co/edit/y6EOw3FIO6VjLgNIn6IU?p=preview

@christopherthielen christopherthielen self-assigned this Nov 17, 2014
@christopherthielen
Copy link
Contributor

Thanks for the concise bug report with plunk example!

@christopherthielen
Copy link
Contributor

dupe #1538

Fix coming in 0.2.13. This is a critical bug, so I'll release 0.2.13 very soon.

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

No branches or pull requests

2 participants