-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Card] Expandable Card mounts/un-mounts children #4750
Comments
It's done this way to avoid paying
|
@oliviertassinari I didn't quite get this. How can I use |
This example is using the Collapse transition. |
i know its a bit old, but i was searching the solution and the links are no longer working
|
Problem description
I'm using expandable cards to display asynchronous data. Load api on expand and populate list. Unfortunately a short list of just 30 items takes around 400ms+ to mount/render. This is ok, next to the time taken for the API cal (although I wish the rendering wouldn't freeze the progress spinner).
Unfortunately, closing and re-expanding the Card unmounts and re-mounts the child component, causing that 400ms freeze. Why is it not simply hidden with display: none or similar?
Steps to reproduce
Populate a Table with around 30 items inside an expandable card. Expand and collapse card and observe timings.
Versions
The text was updated successfully, but these errors were encountered: