mitodl/open-discussions

Resource Card bookmark icon not updated promptly on homepage.

Closed this issue · 1 comments

Steps to Reproduce

  1. Go to https://discussions-rc.odl.mit.edu/infinite and log in.
  2. In "Upcoming courses" click a bookmark icon and add course to list.

Expected Behavior

Bookmark icon becomes filled.

Actual Behavior

Bookmark icon stays outlined.

I fixed a related issue for search recently, #3908.

We recently added a few new queries—upcoming courses, etc—and the "Add to list" mutations are not invalidating (or updating the data) appropriately.

We could:

  1. Update the mutations so it invalidates the new queries, too.
  2. Find a way to change the mutation / restructure queries so that this would have "just worked". Structure stuff somehow so that if we add a new query hook like useGreatPhysicsCourses, we would not need to change the mutations.

(2) would be much better and should be the goal...

It would be really good to find a way to mak

Related discussions post: