Skip to content
This repository has been archived by the owner on Dec 31, 2018. It is now read-only.

Commit

Permalink
Only checking graphql vars to change before reissuing query
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyabo authored and ilyabo committed Jan 10, 2017
1 parent da8b721 commit ddd418d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/container.jsx
Expand Up @@ -55,7 +55,10 @@ export default function container(specs) {
}

componentWillReceiveProps(nextProps) {
if (!shallowEqual(this.props, nextProps)) {
if (!shallowEqual(
mapPropsToVariables(this.props),
mapPropsToVariables(nextProps)
)) {
this.query(nextProps);
}
}
Expand Down

0 comments on commit ddd418d

Please sign in to comment.