Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const reducers = combineReducers<IRootState>({
- // reducers
- });
- const rootReducer = (state: IRootState, action: AnyAction) => {
- switch (action.type) {
- case getType(fullReset):
- localStorage.clear();
- state = { } as IRootState;
- }
- return reducers(state, action);
- };
- export default rootReducer;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement