Skip to content

Commit

Permalink
! fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau committed Apr 13, 2018
1 parent a3748c6 commit 3a54657
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Helmet.js
Expand Up @@ -90,9 +90,9 @@ const Helmet = Component =>
}

shouldComponentUpdate(nextProps) {
return Object.keys(HelmetWrapper.propTypes).some(
key => !deepEqual(this.props[key], nextProps[key])
);
const { children, ...props } = this.props;
const { children: newChildren, ...newProps } = nextProps;
return !deepEqual(this.mapChildrenToProps(children, props), this.mapChildrenToProps(newChildren, newProps));
}

mapNestedChildrenToProps(child, nestedChildren) {
Expand Down

0 comments on commit 3a54657

Please sign in to comment.