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

Slowdown in UX display when editing dashboards #2116

Open
Terdious opened this issue Sep 5, 2024 · 0 comments
Open

Slowdown in UX display when editing dashboards #2116

Terdious opened this issue Sep 5, 2024 · 0 comments

Comments

@Terdious
Copy link
Contributor

Terdious commented Sep 5, 2024

Describe the bug
No bug - Just improvement:
When we start to have many boxes on a dashboard view, when opening the edition, all the boxes types Chart, Devices, Room Devices, etc. will retrieve the list of available devices. This can cause a slowdown in the display of the boxes unnecessarily.

Expected behavior
https://community.gladysassistant.com/t/question-composant-front-menu-edition/9078/4
As seen in the forum conversation with @Pierre-Gilles :

We could set up a Promise cache system to prevent 2 requests from leaving at the same time.

Ex: 2 widgets call the same API. The first widget sends the request and the second just waits for the result of the same request.

This avoids having 2 calls in parallel for the same thing, but it also does not create a cache problem because we only cache the execution (not the result)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant