fix: prevent LLM settings reset when page loses focus during initial setup (#8928)

Co-authored-by: llamantino <12345678+yourusername@users.noreply.github.com>
This commit is contained in:
llamantino
2025-06-07 22:52:59 +02:00
committed by GitHub
parent 46c12ce258
commit abec074a66

View File

@@ -45,6 +45,7 @@ export const useSettings = () => {
// would want to show the modal immediately if the
// settings are not found
retry: (_, error) => error.status !== 404,
refetchOnWindowFocus: false,
staleTime: 1000 * 60 * 5, // 5 minutes
gcTime: 1000 * 60 * 15, // 15 minutes
enabled: !isOnTosPage && !!userIsAuthenticated,