In the legend.tsx file add a console log and refresh the page.
You will notice that we have more than 15 console logs printed (I think this depends on count of layers..maybe).
This means the component re-renders that many times on initial load.
Expected Behavior
The component should not re-render too many times.
Is there an existing issue for this?
Current Behavior
In the legend.tsx file add a console log and refresh the page. You will notice that we have more than 15 console logs printed (I think this depends on count of layers..maybe).
This means the component re-renders that many times on initial load.
Expected Behavior
The component should not re-render too many times.
Steps To Reproduce
No response
Anything else?
No response