HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
React.js Conf 2015 - Data fetching for React applications at Facebook

Facebook Developers · Youtube · 18 HN points · 4 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention Facebook Developers's video "React.js Conf 2015 - Data fetching for React applications at Facebook".
Youtube Summary
Daniel Schafer and Jing Chen describe the approach Facebook uses to make data fetching simple for developers, even as a project grows to include dozens of developers and the application becomes as complex as Facebook's news feed.
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
Yeah, in the GraphQL lectures the FB presenters basically said. [1] Watch the first ten minutes if nothing else.

React = the view layer.

GraphQL = the store.

Relay = the glue.

I'm still ambivalent on this form of stack but it's a move in the right direction. Component composition makes JS a lot less messy. Meteor is doing something real interesting with isomorphic JS, and whether or not it gets widespread adoption, I'm happy that avenue is being explored as well. Stefan Richter is doing some REAL interesting work with isomorphic Clojure [2] in his shop in Germany, that has some real interesting exercises. The talk is from 2010, so it was more novel when I first watched it than you'd think of today.

[1] https://www.youtube.com/watch?v=9sc8Pyc51uU [2]

take a look at GraphQL https://www.youtube.com/watch?v=9sc8Pyc51uU it definitely solves design issues with RESTful APIs
Here's the video introducing it at React.js conf: https://www.youtube.com/watch?v=9sc8Pyc51uU
https://www.youtube.com/watch?v=9sc8Pyc51uU - there are some examples in the talk from React JS Conf.

We haven't yet finalized what API we will provide when we open source Relay. You'll certainly get one object, called Relay, however ;)

Touche
I'm not watching a 30 minute video to get an idea of what writing code in this framework will look like. Can you really not give a single code example, even if the API is in a fluid state?
underwater
Application code will look like regular React components. The only difference is you declare what data you want in a GraphQL fragment.

Here's a photo from the presentation that shows an example: https://twitter.com/devonbl/status/560532680513556481.

Jan 31, 2015 · 1 points, 0 comments · submitted by vishalchawla
Jan 30, 2015 · 2 points, 0 comments · submitted by tinganho
Jan 30, 2015 · 3 points, 0 comments · submitted by chacham15
Jan 30, 2015 · 12 points, 2 comments · submitted by antouank
UberMouse
If they can pull off what they're saying they can, this will be mind blowing. Pretty interested in seeing what the server code for this looks like.
rcsorensen
The title is burying the lede.

Facebook is talking here about "Relay", a framework around React that handles pulling together all the data needs for a deeply nested component tree, from fetching, to optimistic updates, through error handling and pagination.

HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.