[Dialog] open property vs render #4818
Labels
component: dialog
This is the name of the generic UI component, not the React module!
new feature
New feature or request
performance
Looking at the simple dialog example here: http://www.material-ui.com/#/components/dialog
Is there any reason this couldn't be done like this?
Note the removal of
open={this.state.open}
. The dialog shows whenDialog
is mounted, and doesn't show whenDialog
is unmounted.Starting out with material-ui, the original example gives me pause because I have a table with many rows with different dialogs.
Looking at #1682 it says:
I thought idiomatic React was you render something when you want to show it and don't render it when you don't want to show it.
Would it be possible to make
open
optional and have the above work as well?The text was updated successfully, but these errors were encountered: