-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Description
In 1.13.8 I had the following code:
// controller.js
queryParams: {
displayMode: "mode"
}
// route.js
queryParams: {
mode: {
replace: true
}
}However, this started giving an error in 2.0:
You're not allowed to have more than one controller property map to the same query param key, but both
app:displayModeandapp:modemap tomode. You can fix this by mapping one of the controller properties to a different query param key via theasconfig option, e.g.displayMode: { as: 'other-displayMode' }
Changing the route to the following solved the issue.
queryParams: {
displayMode: {
replace: true
}
}Reactions are currently unavailable