only reset publish when clearing cache
This commit is contained in:
parent
589a19b6e2
commit
7554fe01ef
2 changed files with 5 additions and 3 deletions
|
@ -18,6 +18,7 @@ import {
|
|||
doPopulateSharedUserState,
|
||||
doFetchChannelListMine,
|
||||
selectBalance,
|
||||
doClearPublish,
|
||||
} from 'lbry-redux';
|
||||
import Native from 'native';
|
||||
import { doFetchDaemonSettings } from 'redux/actions/settings';
|
||||
|
@ -347,13 +348,13 @@ export function doDaemonReady() {
|
|||
}
|
||||
|
||||
export function doClearCache() {
|
||||
return () => {
|
||||
return dispatch => {
|
||||
// Need to update this to work with new version of redux-persist
|
||||
// Leaving for now
|
||||
// const reducersToClear = whiteListedReducers.filter(reducerKey => reducerKey !== 'tags');
|
||||
// window.cacheStore.purge(reducersToClear);
|
||||
window.localStorage.clear();
|
||||
return window.persistor.purge();
|
||||
return dispatch(doClearPublish());
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -790,5 +790,6 @@
|
|||
"You can have more than one or change this later.": "You can have more than one or change this later.",
|
||||
"Your Channel": "Your Channel",
|
||||
"channel": "channel",
|
||||
"Create": "Create"
|
||||
"Create": "Create",
|
||||
"You have no rewards available.": "You have no rewards available."
|
||||
}
|
Loading…
Add table
Reference in a new issue