Commit 55dbfc8
Fix progress bars not clearing on completion after React 19 upgrade
The Ink 6 / React 19 upgrade (269f3aa) deferred unmountInk() in
ConcurrentOutput to let React 19 flush batched state updates, but
missed the same pattern in useAsyncAndUnmount (used by Tasks) and
SingleTask. Without the deferral, unmountInk() fires before the
setState that triggers `return null` is flushed, so the final render
still contains the LoadingBar and it is never erased.
Wrap unmountInk() in setImmediate() in both places, matching the
existing fix in ConcurrentOutput.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent a4d95bf commit 55dbfc8
2 files changed
Lines changed: 8 additions & 4 deletions
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | | - | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
0 commit comments