diff --git a/src/common-components/data/apiHook.ts b/src/common-components/data/apiHook.ts index bd7517d3..97da0210 100644 --- a/src/common-components/data/apiHook.ts +++ b/src/common-components/data/apiHook.ts @@ -10,6 +10,7 @@ const useThirdPartyAuthHook = (pageId, payload) => useQuery({ queryKey: ThirdPartyAuthQueryKeys.byPage(pageId), queryFn: () => getThirdPartyAuthContext(payload), retry: false, + staleTime: 5 * 60 * 1000, // 5 minutes — TPA context is effectively static per session }); export {