Describe the bug
When viewing a device, the visualization component makes continual requests to the server for redundant information. This is not noticeable for the user, but it could lead to completely unnecessary server strain.
Expected behavior
The component only request the data once, or the data state is pulled up to the parent component.
To Reproduce
Steps to reproduce the behavior:
Running Spool locally
Create a network
View your new network
View the coordinator device
Check the output logs from the server, they should be getting frequently repeated requests for the same information.
Additional context
This is probably a side effect of repeatedly force reloading the react components with the plotly plots to account for changes in window size. If this is the issue it can probably be fixed by pulling any server request in onEffect up to the parent component (i.e. one that isn't being force reloaded).
Describe the bug When viewing a device, the visualization component makes continual requests to the server for redundant information. This is not noticeable for the user, but it could lead to completely unnecessary server strain.
Expected behavior The component only request the data once, or the data state is pulled up to the parent component.
To Reproduce Steps to reproduce the behavior:
Additional context This is probably a side effect of repeatedly force reloading the react components with the plotly plots to account for changes in window size. If this is the issue it can probably be fixed by pulling any server request in onEffect up to the parent component (i.e. one that isn't being force reloaded).