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 · 1 comment
Open

Slowdown in UX display when editing dashboards #2116

Terdious opened this issue Sep 5, 2024 · 1 comment

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)"

Copy link

stale bot commented Nov 5, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 5, 2024
@stale stale bot closed this as completed Nov 13, 2024
@Pierre-Gilles Pierre-Gilles reopened this Dec 2, 2024
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

2 participants