perf: trim widget loading work
This commit is contained in:
1 parent
b2fbd10965
commit
af6fb75e6b
4 files changed
+5
-2
No files matched your search
@@ -104,8 +104,9 @@ const SystemDiskCard = ({
|
||||
measure();
|
||||
const observer = new ResizeObserver(measure);
|
||||
observer.observe(card);
|
||||
observer.observe(value);
|
||||
return () => observer.disconnect();
|
||||
}, [displayText, healthy]);
|
||||
}, []);
|
||||
|
||||
const unhealthyLabel = t("widget.systemDisks.status.unhealthy");
|
||||
const hasTemperature = temperature !== null && temperature !== undefined;
|
||||
|
||||
Reference in new issue
Block a user