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

Make tabs on the resource show page lazy-loaded #161

Open
aine-etke opened this issue Nov 24, 2024 · 0 comments
Open

Make tabs on the resource show page lazy-loaded #161

aine-etke opened this issue Nov 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@aine-etke
Copy link
Member

aine-etke commented Nov 24, 2024

For example, when you have a user who actively used matrix, uploads media, participates in plenty of rooms, etc.
When you try to open that user's show page, it takes a lot of time, even the browser suggests stopping the page, as it slows the browser down.

I already attempted to make that using React.lazy with Suspense wrapping the tab content, but that didn't help - requests to load rooms, media, etc. were sent (and processed).

An alternative (temporary workaround) approach could be wrapping tabs' datagrids in List to limit the number of entries to 10. Unfortunately, I failed to make this work either because I didn't figure out how to wire it with Reference fields (heavily used)

@aine-etke aine-etke added the enhancement New feature or request label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant