🔧 Fixed bugs with tab changes and state

This commit is contained in:
2021-08-24 21:59:59 -07:00
parent 140f690c77
commit 6994da072d
4 changed files with 15 additions and 6 deletions

View File

@@ -5,6 +5,7 @@ import {
AIRDCPP_RESULT_DOWNLOAD_INITIATED,
AIRDCPP_DOWNLOAD_PROGRESS_TICK,
} from "../constants/action-types";
import { LOCATION_CHANGE } from "connected-react-router";
const initialState = {
isAirDCPPSearchInProgress: false,
@@ -49,6 +50,10 @@ function airdcppReducer(state = initialState, action) {
...state,
downloadProgressData: action.downloadProgressData,
};
case LOCATION_CHANGE:
return {
initialState,
};
default:
return state;