mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 16:03:20 +00:00
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.
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user