Skip to content

Commit

Permalink
fix: extend useEffect dependency array to enforce maximum tile count
Browse files Browse the repository at this point in the history
relates #122
  • Loading branch information
camelPhonso committed Nov 11, 2024
1 parent c632ba1 commit ba76516
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default function FavouritesPage() {
}

getFavourites()
}, [setFavouritesList, pageNumber])
}, [setFavouritesList, pageNumber, favouritesList.length % 6 === 0])

return (
<div className="favourites-page page">
Expand Down

0 comments on commit ba76516

Please sign in to comment.