feat(web): add QueryErrorBoundary and use real map coordinates
Add global QueryErrorResetBoundary wrapping the app so TanStack Query errors are caught with a retry UI instead of crashing. Enable throwOnError in QueryClient defaults. Update ListingMap to use real latitude/longitude from API when available, falling back to city-based jitter for listings without coordinates. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -11,6 +11,7 @@ function makeQueryClient() {
|
||||
retry: 3,
|
||||
retryDelay: (attemptIndex) => Math.min(1000 * 2 ** attemptIndex, 30000),
|
||||
refetchOnWindowFocus: false,
|
||||
throwOnError: true,
|
||||
},
|
||||
mutations: {
|
||||
retry: 1,
|
||||
|
||||
Reference in New Issue
Block a user