Commit f4f7774
committed
fix(gui): gate the client-config fetch behind an explicit cancel flag
React Doctor flagged the setter after `await` in the panel's effect. The
write was already safe — every result carries its request key and a
superseded run's key no longer matches — but the guard was an
`AbortController.signal.aborted` check, which states "the request was
cancelled", not "this run may no longer write".
An explicit `cancelled` flag set in the cleanup makes the invariant local
to the setter, so a reader (and the linter) can see why a stale resolve
cannot land. The abort stays: it stops the in-flight request, the flag
stops the write.1 parent be4e1ed commit f4f7774
1 file changed
Lines changed: 11 additions & 3 deletions
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
72 | | - | |
| 77 | + | |
73 | 78 | | |
74 | 79 | | |
75 | | - | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
80 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
| |||
0 commit comments