Skip to content

Cluster children don't re-render on state updates #31

Description

@jaydenseric

Describe the bug

<Marker> children of <Cluster> don't re-render on state updates.

To Reproduce

  1. Create a map with clustered markers.
  2. Add a local state boolean to the component containing the map.
  3. Make the marker children conditionally render content based on the boolean.
  4. Add a button to your component that toggles the state boolean.
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions