-
-
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
Document queryParamsDidChange #10877
Comments
👍 Search to find in source turned this issue up. See
|
@rwjblue @stefanpenner Is this method intended to be public or private? |
FWIW, I'd like it to be public :D |
i suspect public, but @machty may be able to shed light. Will rope him in. |
I don't think I ever intended |
👍 to QP support in a routing service. Currently, I'm basically using my own service to keep track of QPs. When they get set by user action I can easily intercept and update my service directly—at the same time as setting the controller properties that are bound to the URL. However, I suppose all of this is moot if there was a standard routing service that held all this info. |
@knownasilya's service addon is pretty nice for this: https://github.com/knownasilya/ember-query-params. It is good to feel out the space of using a service for this, so we can learn the best patterns and try to incorporate them upstream... |
Cool. I'll take a look. |
This can be closed, #13398 was merged. |
What is the current state for queryParamsDidChange? Docs were added for the feature, but it's still private and possible to vanish at some point? |
I think it's called intimate API, meaning people are using it, so most likely there would be a deprecation if it was to go away before they removed it. So you'd at least have some warning if using it. |
Right now
Ember.Route
has an actionqueryParamsDidChange
that is triggered when query params change.This is useful when needing to override the usual query-param-changing behavior.
However, this method is not in the ember docs, I had to find mention of it in a discussion online.
The text was updated successfully, but these errors were encountered: