Skip to content

Remove nested QueryClient from Main.tsx #145

@arbrandes

Description

@arbrandes

Description

Main.tsx creates its own QueryClient and wraps the app in a QueryClientProvider, but frontend-base's shell (site.tsx) already provides one at the top level. This results in a nested QueryClientProvider that shadows the shell's, meaning the instructor dashboard's query cache is isolated from the rest of the site.

This also means that once React Query devtools are moved to the shell (openedx/frontend-base#206), they will reflect the shell's client rather than the instructor dashboard's, making them ineffective for debugging instructor dashboard queries.

The fix is to remove the QueryClient instantiation and QueryClientProvider wrapper from Main.tsx and rely on the one provided by the shell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions