Skip to content

Convert getCourseDiscussionTopics to React Query #2016

Description

@brian-smith-tcril

Part of #1946 — Redux → React Query migration (Stage 1). Part of the #1976 courseware decomposition (plan) — Target 5 (leaf). Independent — can slot anywhere in the courseware stack.

Goal: convert the discussion-topics fetch to React Query.

Tasks

  • Convert getCourseDiscussionTopics → query (writes the discussionTopics model; getCourseDiscussionConfig gate for the openedx provider preserved).
  • Readers (SidebarContextProvider, DiscussionsSidebar, DiscussionsTrigger) read from the query / bridge.

Verify: discussion topics load in the sidebar for openedx-provider courses; legacy-provider courses unaffected.

Scoped-but-light; a full plan gets added when this is picked up.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions