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

Update PathUtils.treeChanges to retained nodes with to params applied #72

Merged
merged 1 commit into from Jan 10, 2018

Conversation

mgerstenblatt
Copy link
Contributor

@mgerstenblatt mgerstenblatt commented Aug 8, 2017

This is a patch to address an issue in sticky-states (ui-router/sticky-states#13) where dynamic parameters were not working.

Updating PathUtils.treeChanges to return the retained nodes with the to parameters applied fixes the issue.

@jnfeinstein
Copy link

@mgerstenblatt it appears that the retained states with new params are being treated as new states (via to). Since they have new params, they should be reloaded (unless reloadOnSearch is false). Will this affect that behavior?

I'm not terribly familiar with this code, jumping in via the sticky states issue.

👍 for PR, fixes issues and is stable for me.

@mgerstenblatt
Copy link
Contributor Author

@jnfeinstein I was able to find a fix without having to modify the ui-router core. Give this a spin: ui-router/sticky-states#15

@jnfeinstein
Copy link

@mgerstenblatt which is the more correct fix?

@mgerstenblatt
Copy link
Contributor Author

@jnfeinstein I've been using the patched sticky-states version in my production app. You'll have to build the JS from that fork.

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

Successfully merging this pull request may close these issues.

None yet

3 participants