ubilabs / google-maps-react-hooks

The JavaScript library to easily implement a Google Maps map into your react application. It comes with a collection of React hooks to access the map instance or different Maps JavaScript Services.
MIT License
77 stars 13 forks source link

feat: new API loader implementation #137

Open usefulthink opened 1 year ago

usefulthink commented 1 year ago

In preparation for upcoming changes, this extracts the actual loading of the Google Maps API into a separate class.

The new implementation removes a lot of noise from the GoogleMapsProvider and should have a bit more stability especially considering the React strict-mode (we shouldn't have any more problems with running in strict-mode since actual loading is deferred to catch those problems.

Opened as draft PR for review since it still contains debugging comments and testing is ongoing.