Closed chrismayer closed 1 month ago
Thanks for your review @fschmenger!
I added the check if (this.resizeObserver)
, not just for paranoia :wink: - it was necessary to make the tests green. Here we exactly have the situation, that no container exists. Thanks for the hint!
This unregisters the
ResizeObserver
for the map's container element, when the map is unmounted/destroyed.Besides having a better cleanup this also removes the null pointer access within the
ResizeObserver
handler in the hot-reload of the dev- setup, when thenWguApp.vue
is changed.