Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitff54ae3

Browse files
fix: update devcontainer data every 10s (#17619)
Fixcoder/internal#594**Notice:**This is a temporary solution to get the devcontainers feature released.Maybe a better solution, to avoid pulling the API every 10 seconds, isto implement a websocket connection to get updates on containers.
1 parentfe4c412 commitff54ae3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎site/src/modules/resources/AgentRow.tsx

Lines changed: 3 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp