Files
orca/mobile/app
Jinwoo-H bb733bf889 fix(mobile): keep ref writes out of the render phase
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.
2026-08-07 04:40:31 -04:00
..