Skip to content

Commit

Permalink
Remove redundant uses of this.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydenseric committed Oct 25, 2018
1 parent 36ddd5f commit d9545ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# graphql-react changelog

## Next

### Patch

- Remove redundant uses of `this` in the internal `GraphQLQuery` component constructor.

## 4.0.0

### Major
Expand Down
6 changes: 3 additions & 3 deletions src/components.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ class GraphQLQuery extends React.Component {
}

// Setup listeners.
this.props.graphql.on('fetch', this.onFetch)
this.props.graphql.on('cache', this.onCache)
this.props.graphql.on('reset', this.onReset)
props.graphql.on('fetch', this.onFetch)
props.graphql.on('cache', this.onCache)
props.graphql.on('reset', this.onReset)
}

/**
Expand Down

0 comments on commit d9545ac

Please sign in to comment.