fix: avoid writing mobx data to localforage
parent
7b53dc34b5
commit
c065bc677f
|
|
@ -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())),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue