Skip to content
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

[RFC #481] change return of getComponentTemplate from null to undefined to align with RFC #19253

Conversation

jamescdavis
Copy link
Contributor

From RFC #481:

The getComponentTemplate function takes a component class and returns the template associated with the given component class, if any, or one of its superclasses, if any, or undefined if no template association was found.

/cc @chancancode

Copy link
Member

@chancancode chancancode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rwjblue do you think anything else may care?

@pzuraq
Copy link
Contributor

pzuraq commented Nov 6, 2020

I this was an intentional divergence from the RFC in order to align with the the setManager APIs, and it would be breaking to change this.

I'm sorry, I read this as setComponentTemplate, not getComponentTemplate. I'm unsure if this would be breaking.

@rwjblue rwjblue merged commit cb5b67e into emberjs:master Nov 9, 2020
@jamescdavis jamescdavis deleted the align_getComponentTemplate_return_with_rfc branch December 10, 2020 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants