We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b0dd48 commit 616d497Copy full SHA for 616d497
1 file changed
lib/storage/providers/IDBKeyValProvider/index.ts
@@ -57,7 +57,7 @@ const provider: StorageProvider<UseStore | undefined> = {
57
const getValues = Promise.all(pairs.map(([key]) => IDB.promisifyRequest<OnyxValue<OnyxKey>>(store.get(key))));
58
59
return getValues.then((values) => {
60
- pairs.forEach(([key, value], index) => {
+ for (const [index, [key, value]] of pairs.entries()) {
61
if (value === null) {
62
store.delete(key);
63
} else {
@@ -68,7 +68,7 @@ const provider: StorageProvider<UseStore | undefined> = {
68
69
store.put(newValue, key);
70
}
71
- });
+ }
72
73
return IDB.promisifyRequest(store.transaction);
74
});
0 commit comments