Skip to content
This repository was archived by the owner on Mar 22, 2019. It is now read-only.

Adds Component#isVisible deprecation#3403

Merged
jayjayjpg merged 5 commits intoemberjs:blog/embertimes#51from
Mi6u3l:patch-2
Jun 14, 2018
Merged

Adds Component#isVisible deprecation#3403
jayjayjpg merged 5 commits intoemberjs:blog/embertimes#51from
Mi6u3l:patch-2

Conversation

@Mi6u3l
Copy link
Member

@Mi6u3l Mi6u3l commented Jun 13, 2018

What it does

Adds Component#isVisible deprecation write-up

Copy link
Member

@jayjayjpg jayjayjpg left a comment

Choose a reason for hiding this comment

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

This is a great write-up, I like the examples about how to deal with the deprecation in the future in particular! I left a question on how we'd like to mention the RFC - which has already been around for a while - again in the Ember Times now that it has entered Final Comment Period - let me know what you think!


- `<div hidden={{boolean}}></div>`
- Wrapping the component in a template conditional `{{#if}}` statement.
- Using the Components `classNames` and `classNameBindings`
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be

Using the Component's classNames and [...]


## [SECTION TITLE](#section-url)
## [It's visibly time to deprecate isVisible 👀](https://github.com/emberjs/rfcs/pull/324)
A new RFC has been posted on deprecating `Component#isVisible`. The motivation is related to the confusion associated to setting the isVisible property on a component. Also, modern Ember applications are already avoiding using isVisible in favor of simpler conditionals in the template. Given that `Component#isVisible` is a public API, deprecating now would schedule for removal in the next major version release (4.0).
Copy link
Member

Choose a reason for hiding this comment

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

Technically, the RFC is not new, but it's definitely worth mentioning that it entered FCP which stands for Final Comment Period. Therefore I think it would be cool to remind readers that this week might be their last chance to comment on the RFC. Do you have advice on how to phrase this best?

Copy link
Member

@jayjayjpg jayjayjpg left a comment

Choose a reason for hiding this comment

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

Thank you for another great write-up this week! ✨

@jayjayjpg jayjayjpg merged commit 5a285fe into emberjs:blog/embertimes#51 Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants