Created
November 14, 2018 20:40
-
-
Save productioncoder/e99af91cee09f81001daddb0652357da to your computer and use it in GitHub Desktop.
Youtube in React: WATCH_DETAILS_SUCCESS comment reducer now consumes the video id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function (state = initialState, action) { | |
switch (action.type) { | |
case WATCH_DETAILS[SUCCESS]: | |
return reduceWatchDetails(action.response, action.videoId, state); | |
default: | |
return state; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment