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

Iterate more correctly over localStorage keys #981

Closed

Conversation

ApexDevelopment
Copy link

@ApexDevelopment ApexDevelopment commented Dec 20, 2022

Check for "inverseRels" keys when iterating over localStorage. This means we won't accidentally end up with inverse relationship data as part of the records we return from a call to findRecords() without a type argument. This was causing normalization errors when trying to restore all records from a localStorage backup.

Also switches from for...in to for...of as this allows polyfills to control iteration via the Symbol.iterator property on the localStorage object.

Check for "inverseRels" keys when iterating over localStorage. This means we
won't accidentally end up with inverse relationship data as part of the records
we return from a call to findRecords() without a type. This was causing
normalization errors when trying to restore all records from a localStorage
backup.
@ApexDevelopment ApexDevelopment closed this by deleting the head repository Feb 28, 2024
@ApexDevelopment
Copy link
Author

Is this project dead? If so can it be marked as archived so people stop trying to PR?

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.

None yet

1 participant