Comments (5)
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.
@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.
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.
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.
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)
- hot reloading client side not working
- Timed out waiting for dist/*.js after 30 seconds HOT 2
- Internal Server Error when running npm run watch HOT 3
- React-router example
- Location object does not get passed to components server side.
- Had to downgrade to Node v5 for `npm run watch` to work HOT 4
- Images not loading in Webpack build
- Heroku deployment is not working simple express app
- 帅哥,服务端渲染的原理是什么?
- General questions about react-transmit usage within this kit HOT 2
- `Server-side React render was discarded` after migrating to express HOT 1
- Passing custom data (e.g. token) to props during server-side render HOT 1
- Nested containers (with getFragment) prevents server from rendering HOT 3
- npm run watch fails after update to webpack 2 HOT 1
- Doesn't work HOT 1
- Help? It fails to start
- All done but nothing works HOT 3
- Operand to 'typeid'
- not working HOT 2
- does not work out of the box
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 react-isomorphic-starterkit.