Replies: 1 comment
-
That might be a problem because - as far as I know - the Maps API isn't running the key-validation until it first triggers a billable event. The only way to get information about whether the API key is valid is through the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Howdy,
Is there a way to be able to check whether the APIProvider has loaded successfully and that calling a MAP or any other service (places etc.) is going to work.
For example, If I deliberately use an incorrect API key (or remove my localhost:3000 from the filters on Google Dashboard) the hooks return apiIsLoaded true and apiStatus LOADED yet the Google Maps JavaScript API error: InvalidKeyMapError pops up and any attempt to display the map or call a places action throws errors.
I'd like to be able to test for an correct loading of the map services BEFORE I call them?
Beta Was this translation helpful? Give feedback.
All reactions