Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a0bb24

Browse files
committed
fix: update devcontainer data every 10s
1 parent fe4c412 commit 6a0bb24

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

site/src/modules/resources/AgentRow.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ export const AgentRow: FC<AgentRowProps> = ({
158158
]),
159159
enabled: agent.status === "connected",
160160
select: (res) => res.containers.filter((c) => c.status === "running"),
161+
// TODO: Implement a websocket connection to get updates on containers
162+
// without having to poll.
163+
refetchInterval: 10_000,
161164
});
162165

163166
return (

0 commit comments

Comments
 (0)