-
-
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 <LinkTo>
Component Positional Arguments
#698
Conversation
1934284
to
80dc688
Compare
80dc688
to
c9e48a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excited for a day where positional args are removed from the framework! This is a great step.
</LinkTo> | ||
``` | ||
|
||
These migrations can be automated using the [angle brackets codemod](https://github.com/ember-codemods/ember-angle-brackets-codemod). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great!
The `<LinkTo>` built-in component started life as a "helper" in the early days | ||
of Ember, even before an official components API was created. Over time, it | ||
became clear that `<LinkTo>` is better classified as a component than a helper | ||
in modern Ember, and the learning materials have been updated accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://guides.emberjs.com/release/routing/linking-between-routes/#toc_the-linkto--component
Do we want to reference any links for future readers or are they at risk to change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for including the link here so people reviewing the PR can find them. That said, there are also other places, such as the tutorial. This is meant to include all of these so I don't think we need to link from the RFC text itself.
c9e48a9
to
e7a1353
Compare
Hehe, I'm not so sure that this specifically will happen (helpers and modifiers will also use positional params still). |
Moving into final comment period. We will work on adding a nice ember-template-lint rule with a |
Co-authored-by: Matthew Beale <[email protected]>
Rendered