mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
BackendCaps: refresh on reconnect
This commit is contained in:
@@ -85,6 +85,7 @@ export function ProviderBackendCapabilities(props: { children: React.ReactNode }
|
||||
const { data } = apiQuery.backend.listCapabilities.useQuery(undefined, {
|
||||
staleTime: Release.Features.BACKEND_REVALIDATE_INTERVAL,
|
||||
refetchOnWindowFocus: true, // refetch after a long idle
|
||||
refetchOnReconnect: true, // refetch after a network change
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user