fix: improve error handling and stability - no logout on transient errors, add ErrorBoundary, global error logging

This commit is contained in:
Agent Zero
2026-07-26 12:18:52 +02:00
parent e12b85c2ce
commit 808da564f3
7 changed files with 344 additions and 8 deletions
+4 -1
View File
@@ -4,6 +4,7 @@ import { AppRouter } from '@/routes';
import { setUnauthorizedHandler } from '@/api/client';
import { useAuthStore } from '@/store/authStore';
import { useThemeStore } from '@/store/themeStore';
import { ErrorBoundary } from '@/components/common/ErrorBoundary';
const queryClient = new QueryClient({
defaultOptions: {
@@ -33,7 +34,9 @@ export default function App() {
return (
<QueryClientProvider client={queryClient}>
<AppRouter />
<ErrorBoundary>
<AppRouter />
</ErrorBoundary>
</QueryClientProvider>
);
}