mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 00:02:31 +00:00
fix(sidebar): satisfy extracted hook quality gates (#14467)
This commit is contained in:
@@ -136,8 +136,6 @@ export function usePendingSidebarReveal(args: PendingSidebarRevealArgs): void {
|
||||
cancelled = true
|
||||
cancelPendingRevealFrames()
|
||||
}
|
||||
// Why: the effect re-reads live inputs through argsRef; only reveal-relevant identities should retrigger it.
|
||||
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [
|
||||
pendingRevealWorktree,
|
||||
args.agentSendTargetWorktreeId,
|
||||
@@ -265,8 +263,6 @@ export function usePendingSidebarReveal(args: PendingSidebarRevealArgs): void {
|
||||
cancelled = true
|
||||
cancelPendingRevealFrames()
|
||||
}
|
||||
// Why: the effect re-reads live inputs through argsRef; only reveal-relevant identities should retrigger it.
|
||||
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [
|
||||
pendingRevealSidebarRow,
|
||||
args.repoMap,
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
import { useCallback, useEffect, useState } from 'react'
|
||||
import { useCallback, useLayoutEffect, useState } from 'react'
|
||||
import type { ActiveSurfaceVariant } from '../WorktreeCard'
|
||||
import type { HostSectionRow } from '../host-section-rows'
|
||||
import type { PinnedWorktreeDisplayPolicy } from '../worktree-list-groups'
|
||||
@@ -18,7 +18,7 @@ export function usePrimaryActiveWorktreeRow(args: {
|
||||
rowKey: string
|
||||
} | null>(null)
|
||||
|
||||
useEffect(() => {
|
||||
useLayoutEffect(() => {
|
||||
if (activeWorktreeId === null) {
|
||||
setPrimaryActiveWorktreeRow(null)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user