Skip to content

Commit

Permalink
fix: stale time, gc time 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
innerstella committed Jul 21, 2024
1 parent 284fa8d commit ca37d7d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"files": {
"main.css": "/static/css/main.5d684795.css",
"main.js": "/static/js/main.06fd0502.js",
"main.js": "/static/js/main.ab3a4b8b.js",
"index.html": "/index.html",
"main.5d684795.css.map": "/static/css/main.5d684795.css.map",
"main.06fd0502.js.map": "/static/js/main.06fd0502.js.map"
"main.ab3a4b8b.js.map": "/static/js/main.ab3a4b8b.js.map"
},
"entrypoints": [
"static/css/main.5d684795.css",
"static/js/main.06fd0502.js"
"static/js/main.ab3a4b8b.js"
]
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><meta property="og:title" content="직관일기"/><meta property="og:url" content="https://happybaseball-diary.web.app/"/><meta property="og:image" content="https://github.com/innerstella/happybaseball-diary/blob/main/public/assets/png/opengraph.png?raw=true"/><meta property="og:description" content="⚾️ 나의 직관 승률은?"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:title" content="직관일기"/><meta name="twitter:description" content="⚾️ 나의 직관 승률은?"/><meta name="twitter:image" content="https://github.com/innerstella/happybaseball-diary/blob/main/public/assets/png/opengraph.png?raw=true"/><title>직관일기</title><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0"/><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0"/><script defer="defer" src="/static/js/main.06fd0502.js"></script><link href="/static/css/main.5d684795.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body><script type="text/javascript" src="//wcs.naver.net/wcslog.js"></script><script type="text/javascript">if(!wcs_add)var wcs_add={};wcs_add.wa="1d106f0c7b05040",window.wcs&&wcs_do()</script></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><meta property="og:title" content="직관일기"/><meta property="og:url" content="https://happybaseball-diary.web.app/"/><meta property="og:image" content="https://github.com/innerstella/happybaseball-diary/blob/main/public/assets/png/opengraph.png?raw=true"/><meta property="og:description" content="⚾️ 나의 직관 승률은?"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:title" content="직관일기"/><meta name="twitter:description" content="⚾️ 나의 직관 승률은?"/><meta name="twitter:image" content="https://github.com/innerstella/happybaseball-diary/blob/main/public/assets/png/opengraph.png?raw=true"/><title>직관일기</title><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0"/><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0"/><script defer="defer" src="/static/js/main.ab3a4b8b.js"></script><link href="/static/css/main.5d684795.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body><script type="text/javascript" src="//wcs.naver.net/wcslog.js"></script><script type="text/javascript">if(!wcs_add)var wcs_add={};wcs_add.wa="1d106f0c7b05040",window.wcs&&wcs_do()</script></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions src/pages/weather/index.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { Spinner } from "@chakra-ui/react";
import { useQuery } from "@tanstack/react-query";
import { useEffect, useState } from "react";
import { useRecoilValue } from "recoil";
import { useQuery } from "@tanstack/react-query";
import { Spinner } from "@chakra-ui/react";

import * as S from "./Weather.style";
import { teamState } from "../../recoil/system";
import { TEAM_DATA } from "../../constants/team";
import { PLACE_DATA, PLACE_LIST } from "../../constants/place";
import { TEAM_DATA } from "../../constants/team";
import { teamState } from "../../recoil/system";
import * as S from "./Weather.style";

import BackBar from "../../components/back-bar";
import { getCurrWeather, getWeatherForecast } from "../../utils/getWeather";
import parseBaseTime from "../../utils/parseBaseTime";
import PlaceChip from "../../components/chip/place-chip";
import Skeleton from "../../components/skeleton";
import { getCurrWeather, getWeatherForecast } from "../../utils/getWeather";
import parseBaseTime from "../../utils/parseBaseTime";

export default function WeatherPage() {
const currTeam = useRecoilValue(teamState);
Expand All @@ -39,8 +39,8 @@ export default function WeatherPage() {
} = useQuery({
queryKey: ["forecast"],
queryFn: () => getWeatherForecast(currPlace),
staleTime: 60 * 1000,
gcTime: 60 * 1000 * 10,
staleTime: 30 * 60 * 1000,
gcTime: 60 * 60 * 1000,
});

useEffect(() => {
Expand Down

0 comments on commit ca37d7d

Please sign in to comment.