From 1ed47fb4fcec25cb264c1ea52e9f825d172642fa Mon Sep 17 00:00:00 2001 From: aarbit Date: Tue, 30 Sep 2025 00:24:25 -0500 Subject: [PATCH] Fixes useEffect infinite loop --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 18db4b8..fcb3d31 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -12,7 +12,7 @@ function App() { setMovies(data) } ) - }) + }, []) /*function sortByYear(a: Movie, b: Movie): number { return a.releaseYear < b.releaseYear ? -1 : 1