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
@ -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…
Reference in New Issue
Block a user