Skip to content
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

Cannot set property 'networkStatus' of undefined #3388

Closed
maxsalven opened this issue Apr 30, 2018 · 3 comments
Closed

Cannot set property 'networkStatus' of undefined #3388

maxsalven opened this issue Apr 30, 2018 · 3 comments

Comments

@maxsalven
Copy link

apollo-client 2.2.8
react-apollos 2.1.3

I'm frequently getting an error in our production logs: Cannot set property 'networkStatus' of undefined, specifically from line 95 of apollo-client/data/queries.js: this.store[fetchMoreForQueryId].networkStatus = NetworkStatus.ready;

In context:

     this.store[queryId].networkStatus = NetworkStatus.ready;
        // If we have a `fetchMoreForQueryId` then we need to update the network
        // status for that query. See the branch for query initialization for more
        // explanation about this process.
        if (typeof fetchMoreForQueryId === 'string') {
            this.store[fetchMoreForQueryId].networkStatus = NetworkStatus.ready;
        }
    };

Unfortunately I can't reliably replicate this issue. Has anyone had a similar problem?

@maxsalven
Copy link
Author

Duplicate issue, sorry. Closing.

@CodySwannGT
Copy link

Duplicate of what issue? We're seeing this also

@maxsalven
Copy link
Author

#3345

It has now been fixed.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants