Skip to content

Add React Query devtools to the Shell #206

@arbrandes

Description

@arbrandes

Description

shell/site.tsx already owns the top-level QueryClient and QueryClientProvider, making it the right home for React Query devtools. Individual apps (e.g. frontend-app-instructor-dashboard) are currently adding devtools themselves, which causes build failures in downstream consumers and leads to nested QueryClientProvider instances.

Since frontend-base ships its toolchain dependencies directly (webpack, babel, jest, etc.), @tanstack/react-query-devtools should be added to dependencies alongside the existing @tanstack/react-query peer dependency. Because it's a direct dependency it's always installed, so a static import is fine — no dynamic import needed. A process.env.NODE_ENV guard on the render is still required to keep the devtools out of production bundles.

Once this lands, the devtools import and render in frontend-app-instructor-dashboard/src/Main.tsx should be removed.

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions