Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug in element key identity #563

Merged
merged 9 commits into from Jan 4, 2022
Merged

fix bug in element key identity #563

merged 9 commits into from Jan 4, 2022

Conversation

rmorshea
Copy link
Collaborator

@rmorshea rmorshea commented Jan 4, 2022

closes: #556

Includes a fix for stefankoegl/python-json-patch#138 in jsonpatch

Additionally, we were copying the children_by_key dictionary when updating elements.

@rmorshea rmorshea force-pushed the fix-556 branch 4 times, most recently from 48dcdd1 to b53d9cd Compare January 4, 2022 06:42
old children by key were being copied for elements.
as a result we were attempting to delete elements
more than once.
as a result of this additional check, we found what seemed to be
an unnecessary assertion about old component state havint the
same key and index. we change the assertion to only check for the
same key since only the key is meaningful for identity
@rmorshea rmorshea merged commit aad455a into main Jan 4, 2022
@rmorshea rmorshea deleted the fix-556 branch January 4, 2022 07:47
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.

Bug in Element Key Identity
1 participant