fix(web): add ReactQueryProvider to root layout for Mission Control #744

Merged
jason.woltje merged 1 commits from fix/mission-control-query-provider into main 2026-03-08 15:50:41 +00:00
Owner

Problem

Mission Control page crashes with:

Error: No QueryClient set, use QueryClientProvider to set one

Components AuditLogDrawer, GlobalAgentRoster, and PanelControls all use @tanstack/react-query hooks but no QueryClientProvider existed anywhere in the layout tree.

Fix

  • Added ReactQueryProvider in apps/web/src/providers/ReactQueryProvider.tsx
  • Wired into apps/web/src/app/layout.tsx wrapping the entire app
  • Configured with sensible defaults: no refetch on focus, 30s stale time, retry 1

Testing

  • Lint + typecheck green via lintstaged on commit
## Problem Mission Control page crashes with: ``` Error: No QueryClient set, use QueryClientProvider to set one ``` Components `AuditLogDrawer`, `GlobalAgentRoster`, and `PanelControls` all use `@tanstack/react-query` hooks but no `QueryClientProvider` existed anywhere in the layout tree. ## Fix - Added `ReactQueryProvider` in `apps/web/src/providers/ReactQueryProvider.tsx` - Wired into `apps/web/src/app/layout.tsx` wrapping the entire app - Configured with sensible defaults: no refetch on focus, 30s stale time, retry 1 ## Testing - Lint + typecheck green via lintstaged on commit
jason.woltje added 1 commit 2026-03-08 15:31:57 +00:00
fix(web): add ReactQueryProvider to root layout for Mission Control
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
a0cc6c3ec7
Mission Control components (AuditLogDrawer, GlobalAgentRoster, PanelControls)
use @tanstack/react-query hooks but no QueryClientProvider existed in the
layout tree. This caused a crash: 'No QueryClient set, use QueryClientProvider'.

Added ReactQueryProvider wrapper in apps/web/src/providers/ and wired it into
the root layout above ErrorBoundary/AuthProvider so all routes have access.
jason.woltje merged commit 3c288f9849 into main 2026-03-08 15:50:41 +00:00
Sign in to join this conversation.