Skip to content

Commit

Permalink
QueryManager, fix "invalidate" -> "invalidated" typo i think. (#4041)
Browse files Browse the repository at this point in the history
* QueryManager, fix typo i think.

Was hunting for another bug and came across this. 
I think it is suppose to be "invalidated"

* Changelog update
  • Loading branch information
quazzie authored and hwillson committed Jan 29, 2019
1 parent 41ae42d commit 5588cf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
## Apollo Client (vNext)

### Apollo Client (vNext)


- Resolve "invalidate" -> "invalidated" typo in `QueryManager`. <br/>
[@quazzie](https://github.com/quazzie) in [#4041](https://github.com/apollographql/apollo-client/pull/4041)
- Documentation updates. <br/>
[@danilobuerger](https://github.com/danilobuerger) in [#4340](https://github.com/apollographql/apollo-client/pull/4340)

Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-client/src/core/QueryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ export class QueryManager<TStore> {
public addQueryListener(queryId: string, listener: QueryListener) {
this.setQuery(queryId, ({ listeners = [] }) => ({
listeners: listeners.concat([listener]),
invalidate: false,
invalidated: false,
}));
}

Expand Down

0 comments on commit 5588cf9

Please sign in to comment.