You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be common to use store.remove inside store.iterate. If a for..in loop was used we could iterate and remove/delete keys.
Edit:
The issue is that currently a for loop is used, and as the number of keys changes (ie during a remove) so does the referenced length value, which means we won't be iterating through the entire collection. A for...in loop will iterate over all items in the collection even after a delete since it doesn't depend on the length of the collection.
The text was updated successfully, but these errors were encountered:
I think it would be common to use store.remove inside store.iterate. If a for..in loop was used we could iterate and remove/delete keys.
Edit:
The issue is that currently a for loop is used, and as the number of keys changes (ie during a remove) so does the referenced length value, which means we won't be iterating through the entire collection. A for...in loop will iterate over all items in the collection even after a delete since it doesn't depend on the length of the collection.
The text was updated successfully, but these errors were encountered: