Fixed Settings not working in offline dev locally (#20246)

ref
https://forum.ghost.org/t/access-settings-of-local-ghost-install-when-offline/47590

- Fixed a React Query configuration that would only load Settings when
you're connected to the internet.
- Setting `networkMode: 'always'`, ensures that queries are executed
regardless of the network status, bypassing any checks for internet
connectivity.
This commit is contained in:
Ronald Langeveld 2024-05-23 18:58:14 +08:00 committed by GitHub
parent 4a02938774
commit 99232de6ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,8 @@ const queryClient = window.adminXQueryClient || new QueryClient({
staleTime: 5 * (60 * 1000), // 5 mins
cacheTime: 10 * (60 * 1000), // 10 mins
// We have custom retry logic for specific errors in fetchApi()
retry: false
retry: false,
networkMode: 'always'
}
}
});