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:
Ho Ngoc Hai
2026-04-10 17:58:35 +07:00
parent e03c4699d0
commit ab478a565a
4 changed files with 77 additions and 2 deletions

View File

@@ -64,6 +64,8 @@ export interface ListingDetail {
legalStatus: string | null;
amenities: string[] | null;
projectName: string | null;
latitude: number | null;
longitude: number | null;
media: PropertyMedia[];
};
seller: {