Giter VIP home page Giter VIP logo

Comments (8)

phryneas avatar phryneas commented on May 25, 2024

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.

pmualaba avatar pmualaba commented on May 25, 2024

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.

Slessi avatar Slessi commented on May 25, 2024

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
image

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.

jerelmiller avatar jerelmiller commented on May 25, 2024

@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.

jerelmiller avatar jerelmiller commented on May 25, 2024

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.

Slessi avatar Slessi commented on May 25, 2024

Yea, 3.9.4 fixes both problems for me

from apollo-client.

alessbell avatar alessbell commented on May 25, 2024

Thanks for confirming, @Slessi. I'm going to go ahead and close this out.

from apollo-client.

github-actions avatar github-actions commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.