Caching
This commit is contained in:
@@ -35,14 +35,18 @@ function DiskUsage({ liveData }: NodeLiveData) {
|
||||
|
||||
export default function NodesPage() {
|
||||
const { value: nodes, setValue: setNodes } = useAsyncInterval(
|
||||
"liveNodes",
|
||||
[],
|
||||
getLiveNodes,
|
||||
3000
|
||||
3000,
|
||||
);
|
||||
|
||||
const { value: dockerNodes } = useAsync([], async () => getDocker(nodes), [
|
||||
nodes,
|
||||
]);
|
||||
const { value: dockerNodes } = useAsync(
|
||||
"docker",
|
||||
[],
|
||||
async () => getDocker(nodes),
|
||||
[nodes],
|
||||
);
|
||||
|
||||
return (
|
||||
<DashboardLayout title="Nodes" subtitle="Cluster node management">
|
||||
|
||||
Reference in New Issue
Block a user