[Deprecated] Add deprecation for partials#14972
[Deprecated] Add deprecation for partials#14972chadhietala wants to merge 1 commit intoemberjs:masterfrom
Conversation
|
I'm 👎 on this. I've often found partials a good way to break up a large page / component into more logical sections. Sure you could do that with components too, but the difference is scoping. Using components this way requires more boilerplate (passing data in and emitting actions up). Obviously not the end of the world, but I would definitely be sad to see partials go. EDIT: Also there are a lot of addons using them: https://emberobserver.com/code-search?codeQuery=%7B%7Bpartial |
This is exactly why they should go 😜. Making a file smaller does not actually reduce complexity, and instead just increases the mental overhead when you have to parse both the calling location (where you invoke
Perhaps, but when you add an actual API to the thing you have many benefits. Including things like the ability to refactor, ability to test independently, etc. Regardless of our disagreements here, this will need to end up becoming a deprecation RFC. Lets hash out the pros/cons over there.... |
|
This will absolutely go through an RFC process. 👍 |
|
☔ The latest upstream changes (presumably #15014) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Closing for now, until RFC is go. |

This adds a deprecation for
{{partial}}. Like{{render}}they go against the Ember's programming model.