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(ios): Merging empty object should not override current value #1064

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

krizzu
Copy link
Member

@krizzu krizzu commented Feb 19, 2024

Summary

Passing an empty object to multiMerge avoided looping over keys to compare/merge. If the provided object is empty now, simply use the original object instead.

Closes #1046

@krizzu krizzu requested a review from tido64 as a code owner February 19, 2024 18:05
@krizzu
Copy link
Member Author

krizzu commented Feb 20, 2024

Both platform passing

Screenshot 2024-02-20 at 11 52 34

Copy link
Member

@tido64 tido64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this ❤️

packages/default-storage/README.md Outdated Show resolved Hide resolved
packages/default-storage/example/examples/tests.ts Outdated Show resolved Hide resolved
@krizzu krizzu enabled auto-merge (squash) February 20, 2024 16:45
@krizzu
Copy link
Member Author

krizzu commented Feb 20, 2024

@tido64 thanks for the review!

@krizzu krizzu merged commit ea9fc7a into main Feb 20, 2024
10 checks passed
@krizzu krizzu deleted the fix/ios-merging branch February 20, 2024 17:22
@AsyncStorageBot
Copy link
Collaborator

🎉 This PR is included in version 1.22.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

multiMerge will *overwrite* key on iOS for '{}'
3 participants