diff --git a/packages/pure/package.json b/packages/pure/package.json index b080bde..0cad872 100644 --- a/packages/pure/package.json +++ b/packages/pure/package.json @@ -1,6 +1,6 @@ { "name": "@pistonite/pure", - "version": "0.0.15", + "version": "0.0.16", "description": "Pure TypeScript libraries for my projects", "homepage": "https://github.com/Pistonite/pure", "bugs": { diff --git a/packages/pure/src/sync/persist.ts b/packages/pure/src/sync/persist.ts index 5371f2a..3b50250 100644 --- a/packages/pure/src/sync/persist.ts +++ b/packages/pure/src/sync/persist.ts @@ -86,10 +86,10 @@ class PersistImpl implements Persist { const loadedValue = deserialize(data); if (loadedValue !== null) { value = loadedValue; - this.cell.set(value); } } } catch {} + this.cell.set(value); this.unsubscribe = this.cell.subscribe((value) => { this.storage.setItem(this.key, serialize(value)); });