Open defi-bear opened 4 years ago
I experienced the similar issue. The symptom seems to be just that it's not calling .persist()
for some reason. What I did was just:
// For some reason, redux-persist works this way on Electron
if (isElectron()) {
persistor.persist();
}
Hope it helps. Wasted like a day on this.
You can prove that .persist() is not being called by putting a component into loading
prop in PersistGate
. The loading never stops.
This is my code configuring the redux persist. I tried but it's not persist redux if I reload the app.