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.
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
getCourseDiscussionTopics→ query (writes thediscussionTopicsmodel;getCourseDiscussionConfiggate for theopenedxprovider preserved).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.