Skip to content

Trigger featureChanged on feature props change#1196

Merged
stepankuzmin merged 1 commit intomapbox:mainfrom
wyozi:wyozi-patch-1
Aug 22, 2023
Merged

Trigger featureChanged on feature props change#1196
stepankuzmin merged 1 commit intomapbox:mainfrom
wyozi:wyozi-patch-1

Conversation

@wyozi
Copy link
Contributor

@wyozi wyozi commented Aug 22, 2023

fixes #1122

@stepankuzmin stepankuzmin merged commit 357ede0 into mapbox:main Aug 22, 2023
@wyozi wyozi deleted the wyozi-patch-1 branch August 22, 2023 11:09
@stepankuzmin stepankuzmin mentioned this pull request Sep 21, 2023
petermoz pushed a commit to petermoz/mapbox-gl-draw that referenced this pull request Oct 4, 2023
mapbox#1196 intended to add a call to
`featureChanged` any time a feature was `add()`ed with modified
properties, however it has a bug in that the check came after assignment.

A simpler fix would be to move the assignment inside the `if()` body,
but that could break other code that depended on referential equality
after calling `add()`.
danielsippel added a commit to danielsippel/mapbox-gl-draw that referenced this pull request Apr 17, 2024
danielsippel added a commit to danielsippel/mapbox-gl-draw that referenced this pull request Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Existing features don't get rerendered on draw.set

2 participants