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

Route order is reverse of what is expected #8

Open
jcgertig opened this issue Mar 1, 2016 · 0 comments
Open

Route order is reverse of what is expected #8

jcgertig opened this issue Mar 1, 2016 · 0 comments

Comments

@jcgertig
Copy link
Owner

jcgertig commented Mar 1, 2016

The priority order of routes is reverse of the expected order.
I expect the priority order to look like:

<Route name="test" component={Wrap}>
  <IndexRoute name="item1" component={Item1} />
  <Route name=":testVar" component={Item2} />
</Route>

but the order is only correct currently if the var path is first which means priority is checked from bottom to top.

<Route name="test" component={Wrap}>
  <Route name=":testVar" component={Item2} />
  <IndexRoute name="item1" component={Item1} />
</Route>

This needs to be corrected.

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

1 participant