You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The useVisibilityNotifier custom react hook is invoked repeatedly on every re-render to determine whether the top level box (Energy, Tanks, Batteries, Devices, Environment) should be visible or not.
But the reality is that the box is hidden unless we receive related data from MQTT, and from that moment the box is always visible and never hides because data from MQTT never disappear.
Investigate how to optimise this so that top level components are only made visible once and keep visible without unnecessary re-computations.
The
useVisibilityNotifier
custom react hook is invoked repeatedly on every re-render to determine whether the top level box (Energy, Tanks, Batteries, Devices, Environment) should be visible or not.But the reality is that the box is hidden unless we receive related data from MQTT, and from that moment the box is always visible and never hides because data from MQTT never disappear.
Investigate how to optimise this so that top level components are only made visible once and keep visible without unnecessary re-computations.
venus-html5-app/src/app/MarineApp/modules/MetricsWidgets/VisibleWidgets.provider.ts
Line 4 in b6f1de2
The text was updated successfully, but these errors were encountered: