Skip to content

Commit

Permalink
deserialize value when get all items
Browse files Browse the repository at this point in the history
  • Loading branch information
zzcwoshizz committed Mar 16, 2023
1 parent 64d4156 commit d0ac7b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nasty-cows-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zcloak/ui-store": patch
---

deserialize value when get all items
2 changes: 1 addition & 1 deletion packages/ui-store/src/store/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function getAllItems(storage: Storage): Map<string, any> {
const key = storage.key(i);

if (key) {
items.set(key, storage.getItem(key));
items.set(key, deserialize(storage.getItem(key)));
}
}

Expand Down

0 comments on commit d0ac7b2

Please sign in to comment.