T
TanStack11mo ago
magic-beige

Sporadic network errors

Hey, we're using React Query v4.36.1, sometimes, when disconnecting and reconnecting to the internet or going back to our app's tab after a few hours of not using it we get network errors from requests. our settings configuration is:
const queryClient = new QueryClient({
defaultOptions: {
queries: {
refetchOnWindowFocus: false,
retry: 2
},
mutations: {
retry: 2
}
}
});
const queryClient = new QueryClient({
defaultOptions: {
queries: {
refetchOnWindowFocus: false,
retry: 2
},
mutations: {
retry: 2
}
}
});
I assume this is not 100% related to React Query but wondering if anyone else encountered such an issue. Thanks in advance.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?