From 6ad625076d37428600e00cd146491233e43e4d86 Mon Sep 17 00:00:00 2001 From: oikkoikk Date: Thu, 5 Oct 2023 11:02:59 +0900 Subject: [PATCH] Fix : silentRefresh --- src/hooks/useAuth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useAuth.ts b/src/hooks/useAuth.ts index a58f0c5..7756f4c 100644 --- a/src/hooks/useAuth.ts +++ b/src/hooks/useAuth.ts @@ -30,7 +30,7 @@ export default function useAuth() { return response; }; - useQuery([QueryKeys.REFRESH], silentRefresh, { + useQuery([QueryKeys.REFRESH], () => silentRefresh(), { enabled: !!session, refetchInterval: REFRESH_PERIOD, refetchIntervalInBackground: true,