Repository navigation
Commit 62c62e2
fix(mobile): stop Git sheet refresh loop
GitOverviewSheet refreshed Git status in an effect keyed on the whole
useSelectedThreadGitActions result. Each refresh invalidated refs, the
listRefs result re-rendered the hook with a new object, and the effect
fired again, so an idle open sheet issued refreshStatus + listRefs about
five times a second. useSelectedThreadGitActions already refreshes on
mount and on thread/cwd changes, so the sheet effect is removed.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 6e13d8f commit 62c62e2
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 119 | | |
124 | 120 | | |
125 | 121 | | |
| |||
0 commit comments