only reset publish when clearing cache

This commit is contained in:
Sean Yesmunt 2019-10-04 13:29:57 -04:00
parent 589a19b6e2
commit 7554fe01ef
2 changed files with 5 additions and 3 deletions

View file

@ -18,6 +18,7 @@ import {
doPopulateSharedUserState, doPopulateSharedUserState,
doFetchChannelListMine, doFetchChannelListMine,
selectBalance, selectBalance,
doClearPublish,
} from 'lbry-redux'; } from 'lbry-redux';
import Native from 'native'; import Native from 'native';
import { doFetchDaemonSettings } from 'redux/actions/settings'; import { doFetchDaemonSettings } from 'redux/actions/settings';
@ -347,13 +348,13 @@ export function doDaemonReady() {
} }
export function doClearCache() { export function doClearCache() {
return () => { return dispatch => {
// Need to update this to work with new version of redux-persist // Need to update this to work with new version of redux-persist
// Leaving for now // Leaving for now
// const reducersToClear = whiteListedReducers.filter(reducerKey => reducerKey !== 'tags'); // const reducersToClear = whiteListedReducers.filter(reducerKey => reducerKey !== 'tags');
// window.cacheStore.purge(reducersToClear); // window.cacheStore.purge(reducersToClear);
window.localStorage.clear(); window.localStorage.clear();
return window.persistor.purge(); return dispatch(doClearPublish());
}; };
} }

View file

@ -790,5 +790,6 @@
"You can have more than one or change this later.": "You can have more than one or change this later.", "You can have more than one or change this later.": "You can have more than one or change this later.",
"Your Channel": "Your Channel", "Your Channel": "Your Channel",
"channel": "channel", "channel": "channel",
"Create": "Create" "Create": "Create",
"You have no rewards available.": "You have no rewards available."
} }