GithubHelp home page GithubHelp logo

Comments (10)

jbaxleyiii avatar jbaxleyiii commented on April 27, 2024

➤ James Baxley commented:

@lostpebble hmm that is no good! Do you have a simple reproduction I can take a look at?

from apollo-link-state.

jbaxleyiii avatar jbaxleyiii commented on April 27, 2024

➤ Paul Myburgh commented:

@jbaxleyiii sure, I took my current project and tried to strip it down as much as possible to create something you can run and check out:

https://github.com/lostpebble/apollo-two-render

Hope it's not too verbose. The main files to look at are ServerRenderReact.tsx and entryProd.tsx

  • for the server side rendering. And then entryHot.tsx for the client side rendering.

from apollo-link-state.

jbaxleyiii avatar jbaxleyiii commented on April 27, 2024

➤ Jihoon Kim commented:

@jbaxleyiii any update on this?

from apollo-link-state.

jbaxleyiii avatar jbaxleyiii commented on April 27, 2024

➤ stale[bot] commented:

This issue has been automatically labled because it has not had recent activity. If you have not received a response from anyone, please mention the repository maintainer (most likely @jbaxleyiii). It will be closed if no further activity occurs. Thank you for your contributions to React Apollo!

from apollo-link-state.

jbaxleyiii avatar jbaxleyiii commented on April 27, 2024

➤ xabree commented:

I have same issue when using getDataFromTree on server side :(, any Update on this ?

from apollo-link-state.

jbaxleyiii avatar jbaxleyiii commented on April 27, 2024

➤ stale[bot] commented:

This issue has been automatically labled because it has not had recent activity. If you have not received a response from anyone, please mention the repository maintainer (most likely @jbaxleyiii). It will be closed if no further activity occurs. Thank you for your contributions to React Apollo!

from apollo-link-state.

jbaxleyiii avatar jbaxleyiii commented on April 27, 2024

➤ Maxim Vorontsov commented:

Any updates on this issue?

from apollo-link-state.

jbaxleyiii avatar jbaxleyiii commented on April 27, 2024

➤ stale[bot] commented:

This issue has been automatically labled because it has not had recent activity. If you have not received a response from anyone, please mention the repository maintainer (most likely @jbaxleyiii). It will be closed if no further activity occurs. Thank you for your contributions to React Apollo!

from apollo-link-state.

jbaxleyiii avatar jbaxleyiii commented on April 27, 2024

➤ Marc Alexandre commented:

I can't say for the server rendering code, I've yet to use something like this. But for the client side, it seems logical to have two render. Maybe it's different in typescript from pure javascript, but a graphql query would first send { loading: true, allLinks: undefined } and then send { loading: false, allLinks: ...YOUR_DATA }, which would make 2 renders with your code. And if the "loading" is managed differently in typescript, there is also #1314 that can maybe cause this?

from apollo-link-state.

lostpebble avatar lostpebble commented on April 27, 2024

@jbaxleyiii I'll be able to confirm if this is still an issue for you again soon. Is there a reason you're closing it besides it being a bit stagnant?

from apollo-link-state.

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.