Commit 24dbb4f
fix(web): re-enable Add connector button without waiting on background refetch
The "Add connector" button stayed disabled for 2-3s after creating a
connector because the create handler awaited invalidateMcpConfigurationQueries,
which blocks on refetching the server-status and tools queries (network
round-trips to the MCP servers). Fire those invalidations in the background
(void) so the button re-enables as soon as creation succeeds, matching the
fire-and-forget invalidation pattern used elsewhere in the codebase.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent a009461 commit 24dbb4f
1 file changed
Lines changed: 7 additions & 2 deletions
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
297 | 300 | | |
298 | 301 | | |
299 | 302 | | |
| |||
339 | 342 | | |
340 | 343 | | |
341 | 344 | | |
342 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
343 | 348 | | |
344 | 349 | | |
345 | 350 | | |
| |||
0 commit comments