googlemaps / react-wrapper

Wrap React components with this libary to load the Google Maps JavaScript API.
Apache License 2.0
368 stars 52 forks source link

It should be possible to get the error from the callback #839

Open steinybot opened 3 weeks ago

steinybot commented 3 weeks ago

Is your feature request related to a problem? Please describe.

I can't report the error to Sentry when loading the library fails.

Describe the solution you'd like

I'd like to be able to get the error from the Loader in the Wrapper callback.

Describe alternatives you've considered

There is a private errors property on the Loader but I do not want to rely on a private API.

Additional context

N/A