Archived
Related giusto cosi
This commit is contained in:
@@ -38,7 +38,7 @@ class Related extends Component {
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps,prevState){
|
||||
if (prevProps.match.params.videoId !== this.state.videoId){
|
||||
if (prevProps.match.params.id !== this.props.match.params.id){
|
||||
axios.get("https://www.googleapis.com/youtube/v3/search",{
|
||||
params:{
|
||||
'part': 'snippet',
|
||||
|
||||
Reference in New Issue
Block a user