Coder Social home page Coder Social logo

Comments (5)

RickWong avatar RickWong commented on June 21, 2024

I'm still going through the freshly released Relay docs. As I go through it more and more, I'll try to make the decision. For now it seems that Relay brings in a lot of new concepts that the community hasn't heard of yet. For example Relay Routes, fragments, and the general dependency on GraphQL and the availability of a GraphQL server. And there's also the question how isomorphic/universal Relay works...

Please share your opinions here.

from react-isomorphic-starterkit.

kevzettler avatar kevzettler commented on June 21, 2024

@RickWong I agree. I feel theres a lot of value to your react-transmit library. Value in that it is Promise based and utilizes the HOC pattern. I don't think GraphQL will become widely adopted anytime soon and looks like Relay has a hard dependency on it for now.

from react-isomorphic-starterkit.

RickWong avatar RickWong commented on June 21, 2024

Actually spoke to Relay devs on reactiflux#relay and the conclusion seems to be there's no "done" hook comparable to Transmit's onQuery that receives the resolved data, allowing another React.renderToString call once more with the resolved data. Basically that means Relay will only render loading spinners on the server for now.

Correct me if I'm wrong. I've looked at Relay's onReadyStateChange but that doesn't seem to be sufficient for server rendering.

from react-isomorphic-starterkit.

apazzolini avatar apazzolini commented on June 21, 2024

Likely dependent on facebook/relay#136.

Additionally, the overview of Relay's preload mode described in this comment is especially interesting and could likely be applied to react-transmit.

from react-isomorphic-starterkit.

RickWong avatar RickWong commented on June 21, 2024

preload mode sounds great for mostly client-side apps. I'm a bit sceptical though for server-side. The true worth of a universal/isomorphic app is that first output is complete.

I'll definitely look into it for Transmit. Thanks.

from react-isomorphic-starterkit.

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.