fix(site): remove refetch on windows focus (#11574)

It causes the sign-in page to reload whenever a user enters a page or changes the window's focus. This is happening because when the "user" fetch is made, the server returns an error, making the react-query mark the data as stale and try to load it whenever possible.
This commit is contained in:
Bruno Quaresma
2024-01-11 11:06:36 -03:00
committed by GitHub
parent 3695b74ab6
commit d708ac7c04
-1
View File
@@ -131,7 +131,6 @@ export const me = (): UseQueryOptions<User> & {
queryKey: meKey,
initialData: initialUserData,
queryFn: API.getAuthenticatedUser,
refetchOnWindowFocus: true,
};
};