Skip to content

Commit 038b0c2

Browse files
refactor(web): the close sweep reads its state through a stable callback
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent cce655e commit 038b0c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/web/src/routes/_chat.pull-requests.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ function PullRequestsRouteView() {
11051105
const [closeSweepKeys, setCloseSweepKeys] = useState<ReadonlySet<string>>(() => new Set());
11061106
const closeSensorRef = useRef<SidebarPointerSensor | null>(null);
11071107
// A sweep spans many renders; each step reads the rows on screen at that moment.
1108-
const readCloseSweep = useEffectEvent(() => ({
1108+
const readCloseSweep = useStableCallback(() => ({
11091109
displayGroups,
11101110
closeSweepRows,
11111111
closingKeys,

0 commit comments

Comments
 (0)