ListStackServices refetch interval

This commit is contained in:
mbecker20
2024-08-11 19:28:05 -07:00
parent 02e152af4d
commit c456b67018

View File

@@ -23,7 +23,11 @@ export const StackServices = ({
titleOther: ReactNode;
}) => {
const state = useStack(id)?.info.state ?? Types.StackState.Unknown;
const services = useRead("ListStackServices", { stack: id }).data;
const services = useRead(
"ListStackServices",
{ stack: id },
{ refetchInterval: 5000 }
).data;
if (
!services ||
services.length === 0 ||