score:5

Accepted answer
if (this.props.src !== nextProps.src) {
  // toggle logic
}

Related Query

More Query from same tag