Caching
This commit is contained in:
@@ -25,9 +25,14 @@ const statusDot = {
|
||||
} as const;
|
||||
|
||||
export default function DeploymentsPage() {
|
||||
const { value: apps } = useAsyncInterval([], getApps, 5000);
|
||||
const { value: apps } = useAsyncInterval("apps", [], getApps, 5000);
|
||||
|
||||
const { value: deployments, loading } = useAsync([], getDeployments, [apps]);
|
||||
const { value: deployments, loading } = useAsync(
|
||||
"deployments",
|
||||
[],
|
||||
getDeployments,
|
||||
[apps],
|
||||
);
|
||||
|
||||
const appNameByContainer = useMemo(() => {
|
||||
const map = new Map<string, string>();
|
||||
|
||||
Reference in New Issue
Block a user