bpanel-org / bpanel

A Blockchain Management System, powered by bcoin
https://bpanel.org
Other
53 stars 23 forks source link

persistReducers has no effect #171

Closed bucko13 closed 5 years ago

bucko13 commented 5 years ago

Found this when experimenting with the price widget settings. It seems that the change a while back to clear the state when the client changes, loses the persistence. Commenting out this line fixes the problem: https://github.com/bpanel-org/bpanel/blob/development/webapp/store/rootReducer.js#L44 But of course then plugins won't reset when the client changes.

bucko13 commented 5 years ago

Might want to use the persister's 'purge': https://github.com/rt2zz/redux-persist/issues/63

bucko13 commented 5 years ago

nvm, purge only clears the local storage but the current state