Closed kahummer closed 3 years ago
Describe the bug The map on the GisidaLite component re-renders on mouse hover. The issue is related to an issue raised on react-mapbox-gl here.
Expected behavior
The map should not rerender when firing the map events.
Additional context The current fix is creating the Map instance on mount only to avoid the re-renders.
Describe the bug The map on the GisidaLite component re-renders on mouse hover. The issue is related to an issue raised on react-mapbox-gl here.
Expected behavior
The map should not rerender when firing the map events.
Additional context The current fix is creating the Map instance on mount only to avoid the re-renders.