Invalidate webplayer store on logout
This commit is contained in:
parent
4d4ce6c14e
commit
177c67845d
@ -6,7 +6,8 @@ import {
|
|||||||
PLAY_PAUSE,
|
PLAY_PAUSE,
|
||||||
TOGGLE_RANDOM,
|
TOGGLE_RANDOM,
|
||||||
TOGGLE_REPEAT,
|
TOGGLE_REPEAT,
|
||||||
TOGGLE_MUTE } from "../actions";
|
TOGGLE_MUTE,
|
||||||
|
INVALIDATE_STORE } from "../actions";
|
||||||
import { createReducer } from "../utils";
|
import { createReducer } from "../utils";
|
||||||
import { stateRecord } from "../models/webplayer";
|
import { stateRecord } from "../models/webplayer";
|
||||||
|
|
||||||
@ -48,4 +49,7 @@ export default createReducer(initialState, {
|
|||||||
[TOGGLE_MUTE]: (state) => {
|
[TOGGLE_MUTE]: (state) => {
|
||||||
return state.set("isMute", !state.get("isMute"));
|
return state.set("isMute", !state.get("isMute"));
|
||||||
},
|
},
|
||||||
|
[INVALIDATE_STORE]: () => {
|
||||||
|
return new stateRecord();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user