mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
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:
parent
4a02938774
commit
99232de6ee
1 changed files with 2 additions and 1 deletions
|
@ -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'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue