Open azolotova-sc opened 3 years ago
the destroy () event occurs before this._container.remove (),
Is that wrong?
I've just removed this line. I do not understand its purpose as there is another remove()
in the code:
https://github.com/shramov/leaflet-plugins/blob/master/layer/tile/Yandex.js#L161
Hi, I managed to draw a Yandex map using react-leaflet, but after switching to a different route, an error occurs in the Yandex plugin. During debugging, it turned out that the destroy () event occurs earlier than this._container.remove (), and the other component is not rendered, because container no longer exists
MapPage.tsx
<MapLeaflet center={ [55.7558, 37.6173]} zoom={13} style={{width: '800px', height: '800px'}}>