Skip to content

Instantly share code, notes, and snippets.

@codeBelt
Created November 13, 2019 13:58
Show Gist options
  • Save codeBelt/22994d041fad41c00de1a72304becb70 to your computer and use it in GitHub Desktop.
Save codeBelt/22994d041fad41c00de1a72304becb70 to your computer and use it in GitHub Desktop.
switch (action.type) {
case ShowsAction.REQUEST_SHOW_FINISHED:
return {
...state,
show: action.payload,
};
case ShowsAction.REQUEST_EPISODES_FINISHED:
return {
...state,
episodes: action.payload,
};
default:
return state;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment