Redux practice tab reducer
Members
# inner constant initialState
Initial practice tab state
Properties:
Name | Type | Description |
---|---|---|
selectedChoirId |
string | The selected choir id |
selectedChoirName |
string | The selected choir name |
selectedSheetMusicId |
string | - |
exercise |
object | The requested exercise (if one exists) |
startMeasure |
string | The start measure |
endMeasure |
string | The end measure |
doesUserGetFeedback |
string | Indicates if the user gets feedback |
Methods
# inner practiceReducer(state, action) → {object}
Updates Redux auth state based on an action type and a payload
Parameters:
Name | Type | Description |
---|---|---|
state |
object | The current state |
action |
object | Any needed data (including the action type) |
The new state
object