Skip to content

Commit

Permalink
Clear Local Cache should *really* clear local storage and session sto…
Browse files Browse the repository at this point in the history
…rage entirely

Signed-off-by: Gavin Reynolds <[email protected]>
  • Loading branch information
gsreynolds committed Jul 12, 2024
1 parent 756fb18 commit 3d898a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/redux/settings/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,11 @@ export function* clearLocalCacheImpl() {
yield put({
type: 'RESET',
});
yield persistor.purge();
yield persistor.pause();
yield persistor.flush().then(() => persistor.purge());
yield persistor.persist();
localStorage.clear();
sessionStorage.clear();
yield put({
type: CLEAR_LOCAL_CACHE_COMPLETED,
});
Expand Down

0 comments on commit 3d898a9

Please sign in to comment.