Skip to content

Commit

Permalink
fix: sync persist data
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewPattell committed Aug 7, 2024
1 parent 954d037 commit adf35fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/storages/combined-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ class CombinedStorage implements IStorage {
return null;
}

if (this.persistData?.[storageId]?.[storeId]) {
this.persistData[storageId][storeId] = storeData;
}

return this.set(newData, storageId);
});

Expand Down

0 comments on commit adf35fe

Please sign in to comment.