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 bug where param handlers were run out of order #282

Merged
merged 5 commits into from
Sep 29, 2016

Conversation

dominicbarnes
Copy link
Contributor

@dominicbarnes dominicbarnes commented Jun 23, 2016

This fixes #237 by adjusting the way that param handlers are injected into the stack. Currently, the params handlers are added in the order in which you defined them, rather than the order they are defined in the URL.

I've added a few tests cases here to demonstrate the problem, as well as made the necessary changes to fix it. (all other tests are still passing)

Apologies for the weird PR, I actually started on this fix a couple of months ago, but then got sidetracked after a solution didn't come to mind easily. I picked it up again yesterday, and finally came up with something elegant. :)

@jbielick
Copy link
Collaborator

This looks great; thanks for the hard work. Closes #237

@jbielick jbielick merged commit 54a31a7 into ZijianHe:5.x Sep 29, 2016
@dominicbarnes dominicbarnes deleted the fix/router-param-order branch September 29, 2016 02:51
@dominicbarnes
Copy link
Contributor Author

Awesome! Will be glad to finally see this fix land! :D

jbielick added a commit that referenced this pull request Mar 15, 2017
@kherock kherock mentioned this pull request Mar 20, 2017
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.

2 participants