Indeed, with all the chart tests there, when I have dashboards with many Chart boxes + devices, it starts to take a bit of time to display (2/3s). In itself nothing serious, but you can see that processing the device lists takes time.
I’ll investigate later to really know whether it’s the multiple get devices calls that take time or if it’s the processing behind creating the feature lists by removing the selected ones (I suspect the get device because it happens whether I have a selection or not).
But honestly it’s not bothersome in itself. It would just be smoother ^^
We could set up a Promise cache system to prevent 2 requests from being sent at the same time.
Ex: 2 widgets call the same API. The first widget sends the request and the second simply waits for the result of that same request.
This avoids having 2 calls in parallel for the same thing, but it also doesn’t create any cache issues because we’re only caching the execution (not the result)