jumpinjackie / mapguide-react-layout

An openlayers-based modern map viewer for MapGuide
https://jumpinjackie.github.io/mapguide-react-layout/
MIT License
62 stars 13 forks source link

Excessive updates from un-related events #1467

Closed jumpinjackie closed 1 year ago

jumpinjackie commented 1 year ago

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:

jumpinjackie commented 1 year ago

Most of the really bad cases (eg. Legend re-rendering on mouse cursor movement) have been dealt with