You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm developing a modal window with an integrated leaflet map and I'm facing the same problem. When unmounting the modal window from DOM, with the Yandex map open, I get the following error.
Uncaught TypeError: Cannot read properties of undefined (reading 'remove')
at NewClass.eval (Yandex.js?bafe:95:1)
at NewClass.fire (leaflet-src.js?e11e:588:1)
at NewClass.removeLayer (leaflet-src.js?e11e:6653:1)
at NewClass.removeFrom (leaflet-src.js?e11e:6523:1)
at NewClass.remove (leaflet-src.js?e11e:6512:1)
at NewClass.remove (leaflet-src.js?e11e:3762:1)
at eval (MapContainer.js?4686:48:1)
at HTMLUnknownElement.callCallback (react-dom.development.js?61bb:3945:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js?61bb:3994:1)
at invokeGuardedCallback (react-dom.development.js?61bb:4056:1)
at flushPassiveEffectsImpl (react-dom.development.js?61bb:23543:1)
at unstable_runWithPriority (scheduler.development.js?3069:468:1)
at runWithPriority$1 (react-dom.development.js?61bb:11276:1)
at flushPassiveEffects (react-dom.development.js?61bb:23447:1)
at performSyncWorkOnRoot (react-dom.development.js?61bb:22269:1)
at eval (react-dom.development.js?61bb:11327:1)
at unstable_runWithPriority (scheduler.development.js?3069:468:1)
at runWithPriority$1 (react-dom.development.js?61bb:11276:1)
at flushSyncCallbackQueueImpl (react-dom.development.js?61bb:11322:1)
at flushSyncCallbackQueue (react-dom.development.js?61bb:11309:1)
at discreteUpdates$1 (react-dom.development.js?61bb:22420:1)
at discreteUpdates (react-dom.development.js?61bb:3756:1)
at dispatchDiscreteEvent (react-dom.development.js?61bb:5889:1)
As I understand the problem occurs because the parent component is unmounted and _container becomes undefined. And the plugin does not have such a check, has anyone encountered a similar problem? Any solutions?
The text was updated successfully, but these errors were encountered:
Hi, I'm developing a modal window with an integrated leaflet map and I'm facing the same problem. When unmounting the modal window from DOM, with the Yandex map open, I get the following error.
technology stack: ReactJs + NextJS + AntDesign
layer code
parent:
As I understand the problem occurs because the parent component is unmounted and _container becomes undefined. And the plugin does not have such a check, has anyone encountered a similar problem? Any solutions?
The text was updated successfully, but these errors were encountered: