mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-01 15:33:12 +00:00
An empty tradeOptions array meant two different things: "facets query still in flight" and "vocabulary genuinely unavailable". Both enabled fail-open free text and showed the outage warning, so a normal cold fetch looked like an outage. Anything committed in that window was added to knownTradesRef and stayed selectable after the canonical list arrived, permanently undermining the gate. Expose the facets query isLoading as tradesLoading, thread it to the field as tradeOptionsLoading, and keep the canonical gate active while loading. The outage warning now shows only once the query has settled empty. |
||
|---|---|---|
| .. | ||
| api | ||
| app | ||
| components | ||
| config | ||
| domain | ||
| hooks | ||
| infra/query-key | ||
| lib | ||
| providers | ||
| routing | ||
| styles | ||
| test | ||
| app-root.tsx | ||
| app-routes.tsx | ||
| logo.svg | ||
| main.tsx | ||
| vite-env.d.ts | ||