You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently defaults can be set, but if the url has values other then defaults on load, those are never set.
We can access a raw serialized queryParams in beforeModel or other hooks that have a transition.
Currently doing paramsRelay.setParams(this.paramsFor(this.routeName)) kind of helps, but you have to put it in the runloop and a run.later of 500. This prevents the finalizeQueryParams method from clobbering any observers using those values.
So the queryParamsDidChange is a good action (although undocumented and not public) to hook into to update the values on URL update. This makes the controller mixin almost redundent, since we can access the same data from the route and use the action limiting the API to one mixin. See the master branch for testing.
Currently defaults can be set, but if the url has values other then defaults on load, those are never set.
We can access a raw serialized
queryParams
inbeforeModel
or other hooks that have a transition.We need a place to hook into to get the latest values, Or we can process the raw values using https://github.com/emberjs/ember.js/blob/57cf48cfce2acd895572f6f4c0b9478490259cdc/packages/ember-routing/lib/system/route.js#L380 and the types from the default values.
The text was updated successfully, but these errors were encountered: