Comments (8)
Could you please validate if this error still persists in 3.9.3
? We reverted a commit there that might have caused an issue like this.
from apollo-client.
Could you please validate if this error still persists in
3.9.3
? We reverted a commit there that might have caused an issue like this.
We use renovate to update our dependencies to the latest version, so indeed we hoped that v3.9.3 would have fixed it, but the issue still remains with v3.9.3. So we reverted back to v3.8.10 which works flawlessly.
from apollo-client.
I'm seeing (I assume) the same issue on 3.9.3
but not on 3.8.10
.
We have a lazy query which we fire in a useEffect, flow something like this
- First render, undefined data (no effect run yet)
- Effect runs, query fires
- Second render, we have data now
- Third render (??) now data is gone
I don't know why the third render occurs, but what is interesting to me is I see in the network log a second network call of my lazy query, but there was no second call from my useEffect
- not sure what told Apollo to re-query it. The second request is also successful though FWIW.
from apollo-client.
@Slessi, @pmualaba actually that change just released on 3.9.4
, not on 3.9.3 😆. Would you mind trying 3.9.4
now that its out?
from apollo-client.
I see in the network log a second network call of my lazy query
@Slessi I think that might be a different issue than what is originally reported in this issue, but 3.9.4
also contained a fix for a double network call in some cases. I'd love to know if this addresses that issue.
from apollo-client.
Yea, 3.9.4 fixes both problems for me
from apollo-client.
Thanks for confirming, @Slessi. I'm going to go ahead and close this out.
from apollo-client.
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better.
from apollo-client.
Related Issues (20)
- Allow async onCompleted & onError callbacks HOT 11
- improperly escaped error arguments for go.apollo.dev links HOT 4
- Java ApolloClient SocketTimeoutException, how to fix HOT 2
- Tracking issue: `gql.tada` HOT 1
- @defer not working in React Native HOT 19
- useFragment fails to get data from cache for an Interface, even when possibleTypes is setup correctly HOT 5
- Better types MockedResponse.newData HOT 2
- graphql union type extraction fragment doesn't get mapping field values HOT 4
- Question about using useTransition with useSuspenseQuery's refetch and fetchMore after SSR HOT 2
- Error while build the angular app with SSR HOT 1
- `ObservableQuery` `setVariables`/`reobserve` with new variables reports partial data unexpectedly
- Invariant Violation: An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#%7B%22version%22%3A%223.9.4%22%2C%22message%22%3A49%2C%22args%22%3A%5B%5D%7D HOT 8
- offsetLimitPagination helper is not using cache in some cases HOT 2
- Better documentation on `queryDeduplication` HOT 1
- useFragment invalid return value in the case of null or undefined id in the from argument HOT 1
- Refetch with New Variables Overrides Other Existing Refetches HOT 3
- Increase the timeout for a request. HOT 6
- Apollo Client `MockedProvider` unable to mock alias fields HOT 6
- `client.query`, `fetchMore`, and others suffer from unhandled promise rejections
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-client.