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: patches when delete object property in array #526

Merged
merged 1 commit into from Feb 4, 2020

Conversation

ryuever
Copy link
Contributor

@ryuever ryuever commented Feb 4, 2020

May be it's about two points:

  1. The length is the same, markChangesRecursively is still necessary for un-processed array items. such as delete property in an object array, the nextState could be correct, but patches not works as expected.
  2. The delta item has been process as add/remove. The remaining items count would be the min value.

@mweststrate mweststrate merged commit fb5c316 into immerjs:master Feb 4, 2020
@mweststrate
Copy link
Collaborator

Releasing as 5.3.3. Thanks!

@aleclarson
Copy link
Member

🎉 This PR is included in version 5.3.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ryuever ryuever deleted the fix-array-patch branch February 5, 2020 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants