performant-software / react-components

A library of shared React components
https://performant-software.github.io/react-components/
MIT License
1 stars 1 forks source link

Enhancement: Error handling for Place without Geometry #258

Open ajolipa opened 6 months ago

ajolipa commented 6 months ago

Currently, when a <PlaceMarker> component is passed a Core Data place with a null Geometry field, the entire page containing the map component fails to load, with console error Coordinates must contain numbers.

Ideally, failure to load coordinates from the Core Data API should trigger some sort of fallback behavior like just rendering a general world map, so that pages don't crash if this case somehow occurs.

jamiefolsom commented 6 months ago

May be a dupe of https://github.com/performant-software/core-data-cloud/issues/164 (or vice-versa, as this issue is more specific)