Render dialog content only on open by default #1282
toniengelhardt
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When following the dialog example the
DialogContent
is rendered on page load and hidden until the trigger is pressed. This can create a severe performance hit, especially when, for instance, having dialog triggers on list items that show details of the item, bc all of them are rendered on page load.I think it would make sense to, by default, render the
DialogContent
only when the dialog is opened.You can currently achieve this by doing:
Beta Was this translation helpful? Give feedback.
All reactions