diff --git a/components/FullCourseList.tsx b/components/FullCourseList.tsx index 6add875..ae394b7 100644 --- a/components/FullCourseList.tsx +++ b/components/FullCourseList.tsx @@ -49,7 +49,9 @@ export function FullCourseList({ setIsDone(false); } setCourses(apiCourses); - }, [courses, cursor, take, query, term, dotw, stime, inView]); + // Prevent an infinite loop. TODO: better solution. + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [query, term, dotw, stime, inView]); useEffect(() => { if (inView) {