Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f3ca5b370d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| )) as any | ||
| } | ||
| /> | ||
| <CourseDetails course={course} /> |
There was a problem hiding this comment.
Restore per-user course fetch for detail page
Rendering CourseDetails directly from getStaticProps data makes the page use a single cached course payload for all visitors, so user-specific fields like isUserEnrolled, continueFromLesson, and userHasFeedback can no longer be personalized. In practice, logged-in users who are already enrolled can be shown the guest/enroll state (via StatusHeader) instead of the continue flow, because the authenticated privateFetcher(makeGetCourseUrl(...)) call that previously hydrated per-user state was removed.
Useful? React with 👍 / 👎.
No description provided.