mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 18:37:24 +00:00
Explain visibility-owned status subscription cleanup
This commit is contained in:
+1
@@ -46,6 +46,7 @@ export function useGitStatusTurnCompletion(
|
||||
enabled: boolean,
|
||||
scheduler: { readonly current: GitStatusRefreshScheduler | null }
|
||||
): void {
|
||||
// oxlint-disable-next-line react-doctor/effect-needs-cleanup -- Visibility releases all subscriptions; effect cleanup releases the remaining visible lease.
|
||||
useEffect(() => {
|
||||
if (!worktreeId || !enabled) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user