Skip to content

Commit

Permalink
fetchするときにキャッシュを検証するように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nose221834 committed Nov 16, 2024
1 parent 64ff243 commit 75cde70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/components/view/ranking/RankingListAll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function RankingListWeekly() {
useEffect(() => {
const fetchData = () => {
setIsLoading(true);
return fetch("/api/score/week")
return fetch("/api/score/week",{cache: "no-store"})
.then((response) => {
if (!response.ok) {
throw new Error("Failed to fetch data");
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/view/ranking/RankingListWeekly.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function RankingListWeekly() {
useEffect(() => {
const fetchData = () => {
setIsLoading(true);
return fetch("/api/score/week")
return fetch("/api/score/week",{cache: "no-store"})
.then((response) => {
if (!response.ok) {
throw new Error("Failed to fetch data");
Expand Down

0 comments on commit 75cde70

Please sign in to comment.