You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- MapView: restore the hasInitialPosition gate. MapLibre's initialViewState
is consumed once at mount, so mounting before the IP lookup resolves
locks the map to DEFAULT_COORDINATES (Brisbane) even after IP data
arrives. The gate waits for either a selected listing or the IP
fallback to resolve before mounting.
- useIpInitialLocation: on timeout or error, fall back to
DEFAULT_COORDINATES so the gate always eventually lifts (addresses the
earlier concern about the map never rendering on IP failure).
- mapUtils: drop the unused DEFAULT_COORDINATES.zoom; ZOOM_LEVEL_DEFAULT
is already the canonical default zoom.
- useMapListingUrl: memoize the Supabase client so fetchBySlug /
selectListingById don't churn on every render.
- MapPin: tighten isListingPinType with hasOwnProperty.call so inherited
prototype keys like "toString" can't incorrectly narrow to ListingType.
Made-with: Cursor
0 commit comments