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

fix(ui): do not load graph if never displayed (fix #1602) #1719

Merged
merged 2 commits into from Jul 26, 2022
Merged

fix(ui): do not load graph if never displayed (fix #1602) #1719

merged 2 commits into from Jul 26, 2022

Conversation

MPeloquin
Copy link
Contributor

@MPeloquin MPeloquin commented Jul 25, 2022

Add small UI optimization for large module graph

If the user never clicks on the graph tab, do not load the graph.

Once they click on it once, we keep the graph loaded so the next time they load the tab it is at the same place.

⛰️ Screenshots

Before

Ui lags

CleanShot.2022-07-25.at.16.47.46.mp4

After

UI doesn't lag

CleanShot.2022-07-25.at.16.47.01.mp4

Graph works as before

CleanShot.2022-07-25.at.17.27.18.mp4

Fixes #1602

@MPeloquin MPeloquin marked this pull request as ready for review July 25, 2022 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vitest UI very slow with large modules graph
3 participants