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
For components that are JS heavy without a template, they currently use this.sendAction() to send actions. Perhaps an analogous this.sendRouteAction() from this lib would be appropriate.
The helper could be modified, so that there's a named routeTask export with a signature similar to invokeAction:
Just by looking at the component invocation in the template, the user should be able to judge what's going in and what's coming out of a component (DDAU). This way components remain completely agnostic and make no assumptions about the environment they are invoked in.
Calling routeTask inside a component is really non-transparent and promotes an unhealthy invisible entanglement.
Based on DockYard/ember-route-action-helper#64:
The helper could be modified, so that there's a named
routeTask
export with a signature similar toinvokeAction
:The above helper could also be re-exported as an export from 'index.js' for easier access.
The text was updated successfully, but these errors were encountered: