Skip to content

[Bug] Source does not update cluster options #2552

@kodebach

Description

@kodebach

Description

Changing the cluster property on a <Source> component does not update the cluster options of the source.

Expected Behavior

setClusterOptions() should be called on the source, instead only setData is called

(source as GeoJSONSourceImplementation).setData(props.data);

Steps to Reproduce

https://codesandbox.io/p/devbox/fancy-dew-9ks4tr

The "Cluster" button should switch between clustered and unclustered, but nothing happens. To see what should happen fork the sandbox and change the default clustered state.

Environment

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions