-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Assertion Failed: You're not allowed to have more than one controller property map to the same query param key #13258
Comments
Thank you for the issue and reproduction! Would you mind submitting a failing test? That way it will be easier to confirm that we squash it properly... |
/cc @raytiley |
This is because your remapping Still need to work through this a bit more to see what the correct solution is. I'll at least get a failing test written later tonight. |
This fixes the issue for me: #13273 Still need to write tests / make sure I didn't break anything else. |
This past week I started working on a new app, was on Ember 2.4.4 and also tried LTS release 2.4.5, and 2.5.1. The bug persists. The error I saw is like… "You're not allowed to have more than one controller property map to the same query param key, but both Using Ember 2.4.3 does not have the Error. My config uses a baseUrl And the router is like… Router.map(function() {
this.route('list', { path: '/' }, function () {
this.route('index', { path: '/' });
});
}); And, the IndexRoute does have an action that requires a refresh after a queryParam value changes. |
@rwjblue will the fix for this issue be applied to the LTS release ? (we're using 2.4.3 for now since we can't use 2.4.5 with this bug) |
@rwjblue @chancancode any update on resolution for LTS version yet? |
Seems like 2.4.3 is also affected by this, or at least I'm getting the same error. |
@jcbvm I've only seen the issue affecting versions 2.4.4 and 2.4.5, rolling back to 2.4.3 was my workaround. Also, just yesterday a tag was released https://github.com/emberjs/ember.js/releases/tag/v2.4.6 so maybe that is the path forward to stay on the LTS version |
Perhaps this issue can be closed not that v2.4.6 has been cut, see: #13600 |
I'll close this out since 2.4.6 fixes the issue by reverting |
FWIW I'm still seeing a similar error with Ember 2.4.6 when I have two routes with identical query params and one route is redirecting to the other and overriding the query params in the transition options 🤔 |
Hi there,
I just updated one of my apps to v2.4.4 and I saw this error popping up:
The weird thing is that it appears that the error is referring to the same queryParam. If I revert this commit (#13202) the code works as intended.
Here is an ember twiddle reproducing the error: https://ember-twiddle.com/23c9bc41197b73fc8874a35b04c1a635
The setup I've been running is:
The text was updated successfully, but these errors were encountered: