You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I am only fetching overall course info (number, title, description, lecture type), and a list of sections (term code and CRN)
exportinterfaceCourse{// No term for courses. Terms are only required for sectionssubject: string;number: string;scheduleType: string;title: string;credits: number;nuPath: NUPath[];description?: string;sections: {term: string;crn: string;}[];}
Should professor information also be added to the list of sections?
Yes because
it will allow to search for courses by professor (search is currently slow, but that's another issue)
The course page will load faster: no need to make an API call to view a list of professors teaching that course
No because
search is already slow and adding another field to search through will make it even slower (maybe make a search API for this?)
sections can be added/change during the semester, so the data will become outdated
Leaning towards yes if
search can be improved
use getStaticProps to get possible stale data, then update it with React Query
The text was updated successfully, but these errors were encountered:
Currently, I am only fetching overall course info (number, title, description, lecture type), and a list of sections (term code and CRN)
Should professor information also be added to the list of sections?
Yes because
No because
Leaning towards yes if
getStaticProps
to get possible stale data, then update it with React QueryThe text was updated successfully, but these errors were encountered: