Skip to content

Commit

Permalink
remove cache from week games
Browse files Browse the repository at this point in the history
  • Loading branch information
kortirso committed Apr 5, 2024
1 parent c0c7a7d commit 66a6dde
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/javascript/components/Week/Week.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ export const Week = ({ id, teamNames }) => {
weekRequest(weekId)
);

const fetchGames = async () =>
await fetchFromCache(`week_games_${weekId}`, () =>
gamesRequest(weekId)
);
const fetchGames = async () => gamesRequest(weekId);

Promise.all([fetchWeek(), fetchGames()]).then(([weekData, gamesData]) => {
const groupedGames = gamesData.reduce((result, game) => {
Expand Down

0 comments on commit 66a6dde

Please sign in to comment.