-
Notifications
You must be signed in to change notification settings - Fork 159
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
Ensure transition.abort()
works properly for query param only transitions.
#293
Ensure transition.abort()
works properly for query param only transitions.
#293
Conversation
8da70ea
to
a4bb230
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a previously failing test (to make sure we don't regress in the future)?
Yup. In the plans, trying to work through figuring out if everything actually works first :-D. |
I think either a new test similar or a modification of this test would work: https://github.com/tildeio/router.js/blob/master/tests/router_test.ts#L1416-L1501 |
router.updateURL = function(updateUrl) { | ||
url = updateUrl; | ||
if (!initial) { | ||
assert.ok(false, 'updateURL should not be called'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rwjblue - I was looking for something like currentURL()
, but being in router.js, couldn't really find it, so this was the best I could come up with. If you have other ideas I'm certainly open. This does fail without the fix and pass with it.
1ef9a3b
to
3163b0d
Compare
3a04795
to
68ca41e
Compare
68ca41e
to
e2780dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @richgt!
transition.abort()
works properly for query param only transitions.
emberjs/ember.js#18568