-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QueryManager error: listener is not a function #231
Comments
Confirmed that guarding the listener invocation with |
I've verified interleaving of
Interestingly, it seems the use of for (var queryId in this.queryListeners) {
if (this.queryListeners.hasOwnProperty(queryId)) {
var queryStoreValue = queries[queryId];
var listener = this.queryListeners[queryId];
listener(queryStoreValue);
}
} It appears the I would happily provide a PR that either:
I would guess, based on the use of forOwn elsewhere, that the first option is likely the best choice. |
Thank you for identifying the issue and adding the PR! |
Published the fix in |
I've talked/worked through part of this -- after posting a gist -- with @stubailo
Encountering the following error during query execution:
After inserting some
console.log
entriesQueryManager.js
:I notice that
listeners
andqueries
both have keys for query IDs0
and6
-- but, where thequeryId
is logged, an additional query ID,4
is output.Checking further up the console log (and checking redux dev tools), I do see a
APOLLO_QUERY_STOP
for query ID4
.The text was updated successfully, but these errors were encountered: