react-native-async-storage / async-storage

An asynchronous, persistent, key-value storage system for React Native.
https://react-native-async-storage.github.io/async-storage/
MIT License
4.61k stars 458 forks source link

fix(ios): Merging empty object should not override current value #1064

Closed krizzu closed 4 months ago

krizzu commented 4 months ago

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 commented 4 months ago

Both platform passing

Screenshot 2024-02-20 at 11 52 34

krizzu commented 4 months ago

@tido64 thanks for the review!

AsyncStorageBot commented 4 months ago

:tada: This PR is included in version 1.22.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: