-
-
Notifications
You must be signed in to change notification settings - Fork 408
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
Deprecate string based action handling #629
Comments
Thanks @mehulkar! I added a few labels to clarify where this is at. I personally think it should be possible to start charting out what that RFC would look like... |
I was talking with team members around this same topic today, especially An obvious intermediate step there might be to support refreshing a route on the router service. That would need to be designed independently of this, but it’s the only thing I know of which actually requires |
FWIW, it's not required, per se. There are a few ways to do this without
|
It isn't immediately obvious that we need per-route |
Also, for the record, my understanding from #574 (comment) is that the core team was not in favor of incremental progress towards removing controllers. |
Certainly every use care I’ve hit for Also, note that ember-route-action-helper is deprecated; it’s a persistent source of issues for us and getting off of it is one of our motivations in this space. |
IMHO, this case is a bit different. A couple reasons:
Deprecating small pieces of functionality that only affects controllers, just for the sake of deprecating them, is the thing that seems bad/wrong (at least to this core team member). Deprecating a conceptual unit (this issue is discussing |
FWIW, I second Rob’s take (as a non-Core-team member). I simply observed that this change—well-motivated already on its own—is a case where landing it also produces incremental progress toward a potential removal of controllers in the future, because there’s lower coupling and one fewer hard dependency on them. It’s a nice bonus from making the programming model more consistent, rather than the point. |
We should deprecate all forms of string based actions. This includes:
{{action "foo"}}
(action 'foo')
this.send('foo')
(as discussed in Deprecate send API #609)The text was updated successfully, but these errors were encountered: