perf: trim widget loading work
This commit is contained in:
1 parent
47861c0194
commit
1088f058e3
4 files changed
+5
-2
No files matched your search
@@ -94,8 +94,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 hasHiddenTemperature = temperature !== null && temperature !== undefined && !showTemperature;
|
||||
|
||||
Reference in new issue
Block a user