Enable session focus revalidation (#350)

This commit is contained in:
shenlan 2025-10-01 15:37:57 +08:00 committed by GitHub
parent 8751f32d27
commit 97ec2cc6cb

View File

@ -88,7 +88,6 @@ export function UserProvider({ children }: { children: React.ReactNode }) {
isLoading,
mutate,
} = useSWR<User | null>(SESSION_CACHE_KEY, fetchSessionUser, {
revalidateOnFocus: false,
shouldRetryOnError: false,
})