mitodl / mit-learn

BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Revert "Server rendering for homepage, units and topics listing pages" #1838

Closed jonkafton closed 1 week ago

jonkafton commented 1 week ago

Reverts mitodl/mit-learn#1822

The issue is that the cache invalidation for learning resources (to refetch them for user info) only fires after initial page load. If you load some page other than the homepage, for example, and then navigate to the homepage, that will get server rendered without the user info (learning_path_parents, user_list_parents) and will not be refetched.