Closed LeaYeh closed 3 years ago
I think this is a problem with steno. It does not seem to account for multiple processes writing to a file. See this issue: https://github.com/typicode/steno/issues/10
Write is atomic but there should be only one process writing to file.
I use lowdb with eletron-vue in project, and I'm confused about is
write()
atomic writing? Is there any risk that application crash butwrite()
do not finish? I noticed that steno claimed in the READMEBut I got exception
Malformed JSON in file
when Iwrite()
DB in eletron main process and force reloadread()
DB in render process.