LHF: UpsChart deps array granular but fragile #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Low-Hanging Fruit
File:
web/components/ChartCard/UpsChart.tsxThe
usePlotdeps array includesconfig.y_min,config.y_max,config.y_scaleindividually instead of justconfig:Impact
If other
configproperties change (e.g.,title,series_limit), the chart does NOT rebuild — which is actually correct behavior. But if a new y-axis property is added to config, it must be manually added here.Fix
Either use
configdirectly (simpler, may cause unnecessary rebuilds on non-visual changes) or keep current granular approach. Current approach is fine.Note
This is documentation only — current behavior is correct.