Resource Card bookmark icon not updated promptly on homepage.
Closed this issue · 1 comments
ChristopherChudzicki commented
Steps to Reproduce
- Go to https://discussions-rc.odl.mit.edu/infinite and log in.
- In "Upcoming courses" click a bookmark icon and add course to list.
Expected Behavior
Bookmark icon becomes filled.
Actual Behavior
Bookmark icon stays outlined.
ChristopherChudzicki commented
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:
- Update the mutations so it invalidates the new queries, too.
- 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: