forked from github-starred/komodo
ListStackServices refetch interval
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user