I have an application that can display 2 maps on the same page.
The first map always loads without any issues (mostly).
However when you open a popup with a second map, it works the first time you open one, but if you close it and open it again it displays a back screen instead.
Works the first time
Always breaks the second time and any time after that.
I can't see that I'm doing anything wrong with my setup or rendering? I also checked why-did-you-render and I have no unnecesarry re-renders happening on this component.
I have an application that can display 2 maps on the same page.
The first map always loads without any issues (mostly).
However when you open a popup with a second map, it works the first time you open one, but if you close it and open it again it displays a back screen instead.
Works the first time
Always breaks the second time and any time after that.
I can't see that I'm doing anything wrong with my setup or rendering? I also checked why-did-you-render and I have no unnecesarry re-renders happening on this component.
Why am I getting a black screen?
Looking at the html the canvas does not render at all after a second component is rendered.
Versions: "react-mapbox-gl": "5.1.1", "mapbox-gl": "2.8.2",