From 75dee36367c0668df4d0bdadbfedeb1cff0015ea Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Tue, 4 Aug 2026 22:11:05 -0700 Subject: [PATCH] fix(linear): avoid mutating in-orca linked refs during render React Doctor fails static analysis when refs are written during render. Keep the latest linked refs in an effect so the in-orca loader can still read them without re-running on identity-only worktree churn. --- src/renderer/src/components/TaskPage.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/components/TaskPage.tsx b/src/renderer/src/components/TaskPage.tsx index faf8c35e1d3..2a998577fbd 100644 --- a/src/renderer/src/components/TaskPage.tsx +++ b/src/renderer/src/components/TaskPage.tsx @@ -5237,7 +5237,10 @@ export default function TaskPage(): React.JSX.Element { [inOrcaLinkedLinearRefs] ) const inOrcaLinkedLinearRefsRef = useRef(inOrcaLinkedLinearRefs) - inOrcaLinkedLinearRefsRef.current = inOrcaLinkedLinearRefs + // Keep latest linked refs for the in-orca loader without re-running it on identity churn. + useEffect(() => { + inOrcaLinkedLinearRefsRef.current = inOrcaLinkedLinearRefs + }, [inOrcaLinkedLinearRefs]) const filteredLinearIssues = useMemo(() => { const searchedIssues =