mirror of
https://github.com/stablyai/orca.git
synced 2026-10-22 00:03:47 +00:00
CI's React Doctor gate (check:react-doctor:changed, which is separate from check:code-quality:changed) flagged 15 render-phase ref mutations. This is the concurrent-render hazard review also raised: React may abandon a render, and a ref write from it leaks anyway. - The resource now tracks its bound client in state, so the reset during render is a state update - the supported pattern - instead of a ref write. The refs its async guard reads are written in the commit phase, and rebinding retires every request issued for the previous client. - ensureLoaded/reload become useCallback instead of a lazily populated ref, keeping the stable identity consumers depend on. - The route resets repoSelectionHydratedRef in its existing layout effect rather than during render. Also replaces Array<T> with T[] in the new test, per the same gate.