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

update docs-logo component #1125

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

miguelcobain
Copy link
Collaborator

No description provided.

@@ -35,8 +35,8 @@ export default class DocsLogo extends Component {
@equal('logo', 'ember-data')
showEmberData;

didReceiveAttrs() {
super.didReceiveAttrs(...arguments);
constructor() {
Copy link
Collaborator Author

@miguelcobain miguelcobain Feb 9, 2022

Choose a reason for hiding this comment

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

@rwwagner90 Just realized that this won't throw if the user changes the argument to an invalid logo. Only throws on first render.

I think the chances of someone doing that are pretty slim though. But if you think it's worth it, I can have this assertion on a {{did-update render modifier.

Copy link
Member

Choose a reason for hiding this comment

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

@miguelcobain no, I think just throwing initially is fine

@RobbieTheWagner RobbieTheWagner merged commit eff99eb into ember-learn:master Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants