Fixes useEffect infinite loop
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
d92a678140
commit
1ed47fb4fc
@ -12,7 +12,7 @@ function App() {
|
|||||||
setMovies(data)
|
setMovies(data)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
})
|
}, [])
|
||||||
|
|
||||||
/*function sortByYear(a: Movie, b: Movie): number {
|
/*function sortByYear(a: Movie, b: Movie): number {
|
||||||
return a.releaseYear < b.releaseYear ? -1 : 1
|
return a.releaseYear < b.releaseYear ? -1 : 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user