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: DataStoreStage doesn't delete keys when overwritten with a table #459

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

OttoHatt
Copy link
Contributor

@OttoHatt OttoHatt commented Apr 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants