Skip to content

Commit

Permalink
Remove useEffect dependency warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper-Nelligan committed Jul 28, 2023
1 parent aa7813b commit 5bed64c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function App() {
Constants.EMPTY_LINK_PAIRS,
]);
setModals(updatedModals);
}, [colorCount]);
}, [colorCount]); // eslint-disable-line react-hooks/exhaustive-deps

// Retrieve the courses data from localStorage
useEffect(() => {
Expand Down Expand Up @@ -70,7 +70,7 @@ function App() {
} else {
console.log("Error: course data from localStorage could not be fetched");
}
}, []);
}, []); // eslint-disable-line react-hooks/exhaustive-deps

const addOrUpdateCourse = (
initCourseName,
Expand Down

0 comments on commit 5bed64c

Please sign in to comment.