diff --git a/frontend/src/components/Map/hooks/usePopupResult.ts b/frontend/src/components/Map/hooks/usePopupResult.ts index 1337b2f05..3a46d97b9 100644 --- a/frontend/src/components/Map/hooks/usePopupResult.ts +++ b/frontend/src/components/Map/hooks/usePopupResult.ts @@ -22,7 +22,7 @@ export const usePopupResult = ( ['commonDictionaries', language], () => getCommonDictionaries(language), { - staleTime: ONE_DAY, + staleTime: ONE_DAY / 2, }, ); diff --git a/frontend/src/components/pages/details/useDetails.tsx b/frontend/src/components/pages/details/useDetails.tsx index 1c6bd9d87..50aa05e94 100644 --- a/frontend/src/components/pages/details/useDetails.tsx +++ b/frontend/src/components/pages/details/useDetails.tsx @@ -55,7 +55,7 @@ export const useDetails = ( await router.push(routes.HOME); } }, - staleTime: ONE_DAY, + staleTime: ONE_DAY / 2, }, ); diff --git a/frontend/src/components/pages/home/useHome.ts b/frontend/src/components/pages/home/useHome.ts index 67b0842c2..859d6423e 100644 --- a/frontend/src/components/pages/home/useHome.ts +++ b/frontend/src/components/pages/home/useHome.ts @@ -26,7 +26,7 @@ export const useHome = (): UseHome => { ['commonDictionaries', language], () => getCommonDictionaries(language), { - staleTime: ONE_DAY, + staleTime: ONE_DAY / 2, }, ); diff --git a/frontend/src/components/pages/search/hooks/useCounter.ts b/frontend/src/components/pages/search/hooks/useCounter.ts index 34f015618..41d3d29b2 100644 --- a/frontend/src/components/pages/search/hooks/useCounter.ts +++ b/frontend/src/components/pages/search/hooks/useCounter.ts @@ -21,7 +21,7 @@ const useCounter = ({ language }: Args): CountResult => { ['commonDictionaries', language], () => getCommonDictionaries(language), { - staleTime: ONE_DAY, + staleTime: ONE_DAY / 2, }, ); diff --git a/frontend/src/components/pages/search/hooks/useTrekResults.ts b/frontend/src/components/pages/search/hooks/useTrekResults.ts index 7aaeb186e..39573a20a 100644 --- a/frontend/src/components/pages/search/hooks/useTrekResults.ts +++ b/frontend/src/components/pages/search/hooks/useTrekResults.ts @@ -72,7 +72,7 @@ export const useTrekResults = ( ['commonDictionaries', language], () => getCommonDictionaries(language), { - staleTime: ONE_DAY, + staleTime: ONE_DAY / 2, }, ); diff --git a/frontend/src/components/pages/site/useOutdoorCourse.tsx b/frontend/src/components/pages/site/useOutdoorCourse.tsx index ac6f4020a..70d9fdff5 100644 --- a/frontend/src/components/pages/site/useOutdoorCourse.tsx +++ b/frontend/src/components/pages/site/useOutdoorCourse.tsx @@ -31,7 +31,7 @@ export const useOutdoorCourse = ( await router.push(routes.HOME); } }, - staleTime: ONE_DAY, + staleTime: ONE_DAY / 2, }, ); diff --git a/frontend/src/components/pages/site/useOutdoorSite.tsx b/frontend/src/components/pages/site/useOutdoorSite.tsx index 0cd77a90a..272991e99 100644 --- a/frontend/src/components/pages/site/useOutdoorSite.tsx +++ b/frontend/src/components/pages/site/useOutdoorSite.tsx @@ -27,7 +27,7 @@ export const useOutdoorSite = (outdoorSiteUrl: string | string[] | undefined, la await router.push(routes.HOME); } }, - staleTime: ONE_DAY, + staleTime: ONE_DAY / 2, }, ); diff --git a/frontend/src/components/pages/touristicContent/useTouristicContent.tsx b/frontend/src/components/pages/touristicContent/useTouristicContent.tsx index 71ecd779e..a4a9da548 100644 --- a/frontend/src/components/pages/touristicContent/useTouristicContent.tsx +++ b/frontend/src/components/pages/touristicContent/useTouristicContent.tsx @@ -32,7 +32,7 @@ export const useTouristicContent = ( await router.push(routes.HOME); } }, - staleTime: ONE_DAY, + staleTime: ONE_DAY / 2, }, ); diff --git a/frontend/src/components/pages/touristicEvent/useTouristicEvent.tsx b/frontend/src/components/pages/touristicEvent/useTouristicEvent.tsx index f4be69f7f..30e2d8574 100644 --- a/frontend/src/components/pages/touristicEvent/useTouristicEvent.tsx +++ b/frontend/src/components/pages/touristicEvent/useTouristicEvent.tsx @@ -30,7 +30,7 @@ export const useTouristicEvent = ( await router.push(routes.HOME); } }, - staleTime: ONE_DAY, + staleTime: ONE_DAY / 2, }, );