gun
gun copied to clipboard
`put` ignores all nested variables if one of them is an empty object
https://jsbin.com/raleguqaca/1/edit?js,console
gun.get('layer0').put({
value: true,
emptyObject: {},
layer1: {
value: false,
value2: false,
layer2: {a:1}
}
})
gun.get('layer0').get('layer1').once(print)
everything in layer1 wont get added because of the empty object. The once statement will only print undefined
I am also experiencing this. For now, I am having to remove empty fields and then rehydrate on once/load. It's not ideal.
utoh! Thanks for finding. Can work around in meanwhile???
Hmm, this might be related to https://github.com/amark/gun/issues/1295 actually, and if so... is immediately now highest priority.