Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: nullish keys not removed/merged in IDB-Keyval (web) #333
Fix: nullish keys not removed/merged in IDB-Keyval (web) #333
Changes from 8 commits
4e4673c
36e9a83
74a0bdc
922070d
fecda86
cbb679a
1059afc
c26fc84
42c2e1e
d7d10de
88ec086
19daee0
95af261
ad89779
83c02f0
d9b6e55
6e054a8
a18faff
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When would it be possible for
value
to be undefined? Wouldn't that mean that one of thepairs
has only a key?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
value
part of the pair could also beundefined
like['something', undefined]
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am sort of wondering how/why that happened though. It seems inconsistent with the merge behavior. Setting something to
null
has a special significance (i.e. delete me). Setting it toundefined
does not mean anything.I would guess that we would just throw these values out vs. allow them to overwrite / delete any keys.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just added a
[HOLD on #334]
tag to this PR. The SQLite crash PR actually fixes two things that are expected for this PR as well.undefined
values to be passed tofastMerge
Onyx.merge
ifnull
is passedSo we'll first want to merge the other PR in order for this to continue 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way, the extra condition in
IDBKeyVal.multiMerge
is not needed anymoreSome generated files are not rendered by default. Learn more about how customized files appear on GitHub.