This repository was archived by the owner on Aug 6, 2026. It is now read-only.
Repository navigation
Commit cfdf89b
authored
fix(ui): clear react-doctor errors in artifact comments
Three blocking react-doctor findings in the PR's own files:
- ActivityPanel and TaskCommentsList adjusted state inside an effect on a
prop/store change (no-adjust-state-on-prop-change); moved both to
render-time adjustment with the existing prev-value refs, so no stale
tab/filter commits before the switch.
- The comment-focus pulse created a setTimeout in an effect without
returning cleanup (effect-needs-cleanup); the timer now lives in its
own effect keyed on pulseThreadId and is cleared on the next pulse or
unmount, dropping the stray ref.
Behavior unchanged; ActivityPanel and TaskCommentsList suites pass.
Generated-By: PostHog Code
Task-Id: 0331ac58-0a1c-4b4e-b884-2ff7d8e719861 parent b131850 commit cfdf89b
2 files changed
Lines changed: 20 additions & 22 deletions
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
185 | | - | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| |||
Lines changed: 12 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
335 | 334 | | |
336 | 335 | | |
337 | 336 | | |
| |||
358 | 357 | | |
359 | 358 | | |
360 | 359 | | |
361 | | - | |
362 | 360 | | |
363 | 361 | | |
364 | 362 | | |
| |||
373 | 371 | | |
374 | 372 | | |
375 | 373 | | |
376 | | - | |
377 | | - | |
378 | 374 | | |
379 | 375 | | |
380 | 376 | | |
| |||
383 | 379 | | |
384 | 380 | | |
385 | 381 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
392 | 389 | | |
393 | 390 | | |
394 | 391 | | |
| |||
0 commit comments