electron-userland / electron-userland/electron-webpack

Storage data (localstroage, IndexedDb) gets deleted whenever the application restarts in dev mode

Open
#240 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
902
Forks
168
PR merge metrics
No merged PRs in 30d

Description

Storage data (localstroage, IndexedDb) is getting deleted on app restarts. Meaning, if I completely stop the build, and start again. The data is maintained if the app simply restarts because of HMR or anything else that doesn't stop the dev build.

I have no idea how or where to start looking. I was not able to reproduce this in electron-starters that don't use electron-webpack. I was able to reproduce it easily by using [electron-webpack-quick-start](https://github.com/electron-userland/electron-webpack-quick-start) and only in dev mode. Running the packaged app doesn't face this problem. So I'm guessing this must be related to `electron-webpack dev`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.