Skip to content

Commit

Permalink
Merge pull request #235 from apollostack/0.3.10
Browse files Browse the repository at this point in the history
0.3.10
  • Loading branch information
Sashko Stubailo committed May 23, 2016
2 parents b041c59 + bf1e054 commit fe9535a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Expect active development and potentially significant breaking changes in the `0

### vNEXT

- Resolve a race condition between `QueryManager` `stopQuery()` and `broadcastQueries()`. [Issue #231](https://github.com/apollostack/apollo-client/issues/231) [PR #232](https://github.com/apollostack/apollo-client/pull/232)
### v0.3.10

- Resolve a race condition between `QueryManager` `stopQuery()` and `broadcastQueries()`, which would result in an error `listener is not a function`. [Issue #231](https://github.com/apollostack/apollo-client/issues/231) [PR #232](https://github.com/apollostack/apollo-client/pull/232)

### v0.3.9

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apollo-client",
"version": "0.3.9",
"version": "0.3.10",
"description": "A simple yet functional GraphQL client.",
"main": "./lib/src/index.js",
"typings": "./lib/src/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/QueryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ export class QueryManager {
const queries = this.getApolloState().queries;
forOwn(this.queryListeners, (listener: QueryListener, queryId: string) => {
// it's possible for the listener to be undefined if the query is being stopped
// See here for more detail: https://github.com/apollostack/apollo-client/issues/231
if (listener) {
const queryStoreValue = queries[queryId];
listener(queryStoreValue);
Expand Down

0 comments on commit fe9535a

Please sign in to comment.