I don't understand this module very well! Here's an attempt. I think merging keys from _saveDataSnapshot is overzealous, so maybe take a look at that..
The bug is: if data in _baseDataSnapshot is a table, and we overwrite with a table missing some of those keys, it won't delete that key when saving. It'll be left intact with some outdated value.
I don't understand this module very well! Here's an attempt. I think merging keys from
_saveDataSnapshot
is overzealous, so maybe take a look at that..The bug is: if data in
_baseDataSnapshot
is a table, and we overwrite with a table missing some of those keys, it won't delete that key when saving. It'll be left intact with some outdated value.