Closed caritasverein closed 3 years ago
@caritasverein Hi,
You are right - this happens because I upgraded the google-maps dependency. I will check if I can somehow configure or I will roll back to the previous version. I will update here.
@caritasverein Hi,
I released a fix for this - please check the latest version. Here is a working example: https://codesandbox.io/s/basic-usage-with-react-leaflet-v3-state-update-bug-forked-mztcm
It works like a charme! Thank you for your fast response and for your fix!
If you implement ReactLeafletGoogleLayer and update the state of your page, for example with an useState, you will get an error/warning from the Google API:
You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.
You can recreate this issue using the example below.
Am i missing something here?