🛜 feat: Enable Network Requests in Offline Mode (#11107)

This commit is contained in:
Danny Avila 2025-12-26 09:01:27 -05:00 committed by GitHub
parent f993189e66
commit 43c2c20dd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,16 @@ const App = () => {
const { setError } = useApiErrorBoundary();
const queryClient = new QueryClient({
defaultOptions: {
queries: {
// Always attempt network requests, even when navigator.onLine is false
// This is needed because localhost is reachable without WiFi
networkMode: 'always',
},
mutations: {
networkMode: 'always',
},
},
queryCache: new QueryCache({
onError: (error) => {
if (error?.response?.status === 401) {