electron-settings: Lost Settings on Unexpected Shutdowns

I have an issue with the current PC where it just restarts randomly sometimes. Every time it happens, if the app that uses this module is running, the entirety of the db from electron-settings gets completely wiped out.

Is my assumption that this cannot be corrected and I should look for a “more persistent” db solution correct?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 30 (10 by maintainers)

Most upvoted comments

My OS is Windows 10, not sure if this is OS specific, it kind of feels like electron-settings is keeping all changes in memory and only saving to file on app close.

If my presumption is true though, it would be awesome if we could also save manually. As I could make it save on a 60 min interval.