diff --git a/src/mobx/State.ts b/src/mobx/State.ts index b3e861cc..9c5cf367 100644 --- a/src/mobx/State.ts +++ b/src/mobx/State.ts @@ -104,7 +104,10 @@ export default class State { */ async save() { for (const [id, store] of this.persistent) { - await localforage.setItem(id, store.toJSON()); + await localforage.setItem( + id, + JSON.parse(stringify(store.toJSON())), + ); } }