From 47d0f3f74a12fd7694ab7cee5eee474d95f6af3b Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 10 Nov 2024 16:35:31 +0200 Subject: [PATCH] Comment out useRevalidateOnRevisit for testing --- app/root.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/root.tsx b/app/root.tsx index 356d976ce..96123a354 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -137,7 +137,8 @@ function Document({ const { i18n } = useTranslation(); const locale = data?.locale ?? DEFAULT_LANGUAGE; - useRevalidateOnRevisit(); + // TODO: re-enable after testing if it causes bug where JS is not loading on revisit + // useRevalidateOnRevisit(); useChangeLanguage(locale); usePreloadTranslation(); useLoadingIndicator(); @@ -220,6 +221,7 @@ function usePreloadTranslation() { }, []); } +// @ts-expect-error to be used in the future function useRevalidateOnRevisit() { const visibility = useVisibilityChange(); const { revalidate } = useRevalidator();