reminder
parent
5089e715b3
commit
4546eb9140
|
|
@ -86,7 +86,7 @@ const prepareDictation = (state: IState): { randomTones: Tone[] } => {
|
||||||
|
|
||||||
return { randomTones: newRandom }
|
return { randomTones: newRandom }
|
||||||
}
|
}
|
||||||
|
// see https://stackoverflow.com/questions/36730793/can-i-dispatch-an-action-in-reducer
|
||||||
export const reducer = (state:IState, action:Action):IState => {
|
export const reducer = (state:IState, action:Action):IState => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case ActionType.setPause: return { ...state, sylPause: action.payload as number }
|
case ActionType.setPause: return { ...state, sylPause: action.payload as number }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue