diff --git a/CHANGELOG.md b/CHANGELOG.md index b93cc0a60f3..b21822628ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index 0a630b3605e..09a76551d86 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/QueryManager.ts b/src/QueryManager.ts index 1fdfb5b4eb2..04add96ee6b 100644 --- a/src/QueryManager.ts +++ b/src/QueryManager.ts @@ -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);