Skip to content

Commit

Permalink
deep merge whitelisted keys
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau committed Apr 13, 2018
1 parent c102586 commit a3748c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Helmet.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ const Helmet = Component =>
}

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

mapNestedChildrenToProps(child, nestedChildren) {
Expand Down

0 comments on commit a3748c6

Please sign in to comment.