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 routing bug transitioning between two routes with differen params #147

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ryanlabouve
Copy link

Fixes the bug

The first one is thrown when transitioning between routes with the same name but different params (e.g. from /articles/1 to /articles/2). The error is:

Originally outlined here: #83

(This build will fail until rebased on top of #146)

First commit:
dummy tests 2018-04-17 12-11-19

Second commit:
monosnap 2018-04-17 12-13-12

> The first one is thrown when transitioning between routes with the same name but different params (e.g. from /articles/1 to /articles/2). The error is:

mike-north#83
This fixes the bug:

> The first one is thrown when transitioning between routes with the same name but different params (e.g. from /articles/1 to /articles/2). The error is:

ref mike-north#83
assert.deepEqual(data.routes.map((r) => r.name), ['application', 'loading', 'company', 'company.loading', 'company.buildings'], 'Proper routes load');


let rs = data.routes.map((r) => r.name)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love having to do this, but I wasn't' sure how to maintain the same validate-event helper with introducing the second main resource path for articles (that I used to reproduce the bug).

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.

1 participant