Skip to content

Commit 8d52ff1

Browse files
committed
Remove cache invalidation
1 parent 50a6505 commit 8d52ff1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

frontends/api/src/ssr/usePrefetchWarnings.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ export const usePrefetchWarnings = ({
4545
*/
4646
useEffect(
4747
() => {
48-
/* Invalidate all learning resource queries so they are re-fetched in the client
49-
* for session specific data (user list memberships).
50-
* This is interim, until the memberships endpoint is implemented in the frontend
51-
* TODO remove once complete (see https://github.com/mitodl/hq/issues/5159)
52-
*/
53-
queryClient.invalidateQueries(["learningResources"])
54-
5548
if (process.env.NODE_ENV === "production") {
5649
return
5750
}

0 commit comments

Comments
 (0)