JustFly1984 / react-google-maps-api

React Google Maps API
MIT License
1.76k stars 426 forks source link

Updating its own load state if it was already loaded externally #3191

Open Alynva opened 1 year ago

Alynva commented 1 year ago

If the LoadScript sees the Google API already loaded, it should proceed to mount its children components. Right now, it gets stuck in the loading state, showing just the console message. Instead, it needs to consider its work 'done'.

JustFly1984 commented 1 year ago

Sorry, but this library does not expect script to be loaded externally. It could cause unexpected errors.