diff --git a/src/store/reducers.ts b/src/store/reducers.ts index 75f7b11..a99426c 100644 --- a/src/store/reducers.ts +++ b/src/store/reducers.ts @@ -110,6 +110,9 @@ export const collections = handleActions( } return state; }, + [actions.logout.toString()]: (state: CacheCollectionsData, _action: any) => { + return state.clear(); + }, }, ImmutableMap({}) ); @@ -162,6 +165,9 @@ export const items = handleActions( } return state; }, + [actions.logout.toString()]: (state: CacheItemsData, _action: any) => { + return state.clear(); + }, }, ImmutableMap({}) );