Commit 7dd9e6c
fix: defer scroll update until tabIds state reflects new tab
updateScrollDebounced closes over tabIds — calling it immediately after
createTab/CreateTabFromTemplate uses the stale count. Move it into the
useEffect([tabIds]) so it runs after React commits the updated list.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1117c9a commit 7dd9e6c
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
534 | 535 | | |
535 | 536 | | |
536 | 537 | | |
537 | | - | |
538 | | - | |
| 538 | + | |
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
| |||
0 commit comments