Open up dev tools and enable Highlight updates when components render
Move the mouse and observe the legend lighting up like a christmas tree even though the legend does not care about mouse coordinate update events, but because of redux, it does.
We can try to solve this problem from 2 different angles:
Open up dev tools and enable
Highlight updates when components render
Move the mouse and observe the legend lighting up like a christmas tree even though the legend does not care about mouse coordinate update events, but because of redux, it does.
We can try to solve this problem from 2 different angles:
React.memo