forked from abner/for-legacy-web
fix(mobx): save stores on first load
This commit is contained in:
@@ -226,6 +226,9 @@ export default class State {
|
||||
store.hydrate(data, revision[id] ?? +new Date());
|
||||
}
|
||||
}
|
||||
|
||||
// Dump stores back to disk.
|
||||
await this.save();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user