schummar-table 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/es/index.js CHANGED
@@ -230,14 +230,10 @@ function useTableStateStorage(table) {
230
230
  return;
231
231
  }
232
232
  const {
233
- storage
233
+ storage,
234
+ id
234
235
  } = persist;
235
- const keys = "keys" in storage ? await storage.keys() : await Promise.all(Array(storage.length).fill(0).map((_x, i) => storage.key(i)));
236
- for (const key of keys) {
237
- if (key !== null) {
238
- await storage.removeItem(key);
239
- }
240
- }
236
+ await storage.removeItem(storageName(id));
241
237
  q.clear();
242
238
  });
243
239
  }