Commit 81a9ff6
committed
impl: poll workspaces when Toolbox screen becomes visible
Some users complained that Coder Toolbox has a noticeable delay in rendering the workspaces
status compared with the web Dashboard, even though they have the same polling frequency,
which is every 5 seconds.
However, the web Dashboard also reacts and when the tab receives focus from the user which
improves the experience. This PR tries to implement the same behavior, when Coder Toolbox
screen becomes visible the polling is triggered immediately which should result in a status update.1 parent fc97059 commit 81a9ff6
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | 57 | | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
188 | 193 | | |
189 | 194 | | |
190 | 195 | | |
| |||
293 | 298 | | |
294 | 299 | | |
295 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
296 | 306 | | |
297 | 307 | | |
298 | 308 | | |
| |||
0 commit comments