-
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
Cannot set property 'networkStatus' of undefined error occurs when fetchMore gets called #2539
Comments
@pycraft114 could you create a reproduction for this to help me isolate what is not working? |
@jbaxleyiii Do you guys provide any boilerplate code for plunker? like for the minimal settings to demonstrate? the.fetchQuery.fetchMore function gets called whenever i click a specific button and i assume the error occurs from |
I'm having this same issue. I'm using apollo client with react native. To reproduce the issue do the following:
|
@jbaxleyiii any news? |
Same as #2533 |
@sondremare how could this be same with that?? |
After reading @alewiahmed's comment, It appears to be the same |
@sondremare is right, it's the same issue. When you first send a request & that request fails, a normal network error is thrown, but then when you send the fetchMore request the Cannot set property 'networkStatus' of undefined error occurs. |
@alewiahmed - I'm having the same issue. After one request fails, there is no way to make the second one as the aforementioned error occurs. |
Is there a plan to fix this? |
is there any update to this issue im still facing this even when i use the solution here #2513 only patches refetch i think |
hey guys, @seanyu4296 @DeviousM @pycraft114, this worked for me. you'll need both steps.
|
@alewiahmed - thanks for the tip, but unfortunately I can't edit built library as our CI is downloading it on it's own (therefore there's no feasible way to do it properly this way). |
We @alewiahmed both have the same problem since i also use a CI, but i might try to fork to apply the patch. Thanks for sharing your @alewiahmed step by step fix so far it seems to work in my project. |
No problem at all @seanyu4296 . I'm glad that helped. quick question. After I upgraded to the 2.1 beta all other errors thrown by my app are thrown as a network error. Did you by an chance get that type of behavior? Thanks. |
I still have this in 2.1.4 |
This issue should be fixed in modern versions of |
Still have it in |
Intended outcome:
I'm trying to use fetchMore function that is described at your documentation. link : https://www.apollographql.com/docs/angular/recipes/pagination.html#fetch-more
below is the actual code :
but when fetchMore gets invoked, "Cannot set property 'networkStatus' of undefined" error occurs.
ps. After the 2.0.0 releases your documentations are very unstable .Inside the example code about usage of fetchMore(above link) there is no such "this.feedObs" property. Maybe you guys meant "this.feedQuery". And also the "forceFetch" property inside watchquery options does not exist in type WatchQueryOptions & TypedVariables.
Actual outcome:
How to reproduce the issue:
Version
The text was updated successfully, but these errors were encountered: