Describe the bug
<Marker> children of <Cluster> don't re-render on state updates.
To Reproduce
- Create a map with clustered markers.
- Add a local state boolean to the component containing the map.
- Make the marker children conditionally render content based on the boolean.
- Add a button to your component that toggles the state boolean.
- Click the button, and notice that the children in the makers doesn't re-render and change.
Expected behavior
<Cluster> children should re-render when state changes.
Desktop:
- OS: [e.g. iOS] macOS
- Browser [e.g. chrome, safari] Chrome
- Version [e.g. 22] 81
Additional context
At first I thought it might be because <Cluster> is a React.PureComponent, but when I manually reached into node_modules and changed it to React.Component it made no difference.
Describe the bug
<Marker>children of<Cluster>don't re-render on state updates.To Reproduce
Expected behavior
<Cluster>children should re-render when state changes.Desktop:
Additional context
At first I thought it might be because
<Cluster>is aReact.PureComponent, but when I manually reached intonode_modulesand changed it toReact.Componentit made no difference.