Allow for clearing the Redux store from the settings page

This commit is contained in:
Lei Nelissen
2020-08-28 14:17:37 +02:00
parent 3ff971a773
commit 12b53eca4a
4 changed files with 79 additions and 44 deletions

View File

@@ -31,7 +31,9 @@ const initialState: State = {
const music = createSlice({
name: 'music',
initialState,
reducers: {},
reducers: {
reset: () => initialState,
},
extraReducers: builder => {
/**
* Fetch All albums