Commit 7d06a8c
Fix host table staleness on id change and redundant fetches for finished invocations
When React Router reuses JobInvocationDetailPage for a different job via
breadcrumb navigation, the host table guard effect was not checking for id
changes, leaving the table stale. Add a prevId ref so an id change triggers
a re-fetch alongside the existing filter/status guards.
TemplateInvocation was unconditionally calling dispatchFetch() on every
expand, even for invocations that were already finished and had a full
response in the Redux store. Guard dispatchFetch() behind
response?.finished !== true to skip the extra HTTP request on
collapse→expand cycles for completed invocations.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 50d49af commit 7d06a8c
2 files changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
| 261 | + | |
260 | 262 | | |
261 | | - | |
| 263 | + | |
262 | 264 | | |
263 | 265 | | |
| 266 | + | |
264 | 267 | | |
265 | 268 | | |
266 | 269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
116 | | - | |
| 118 | + | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| |||
0 commit comments