updating an object of objects creates duplicate keys
sweetcoco opened this issue · comments
Corey Howell commented
lets say the store has "favoriteAlbums"
favoriteAlbums: {
a: {...},
b: {...}
}
Paradoxically, if you do this, you'll end up with a duplicate key in your favoriteAlbums
object:
store.update('favoriteAlbums', {b: {,,,}}
// so now favoriteAlbums looks like this
favoriteAlbums: {
a: {...},
b: {...},
b: {,,,}
}
Ideal functionality would be to overwrite the nested object.
Corey Howell commented
uhh... nvm, i'm a huge idiot. It's not duplicating the keys.