Data fetching for React applications at Facebook
summary
Facebook claims production use of GraphQL for roughly two and a half years and says client teams stopped writing dedicated endpoints almost two years ago. The concrete stack is GraphQL plus a framework called Relay that generates composed queries from components, stores results in a single generic client store, and handles pagination with cursors and variable counts plus stitched responses. Relay also implements an optimistic-update queue with automatic rollback on error. Examples include the Groups view and an experimental mobile site; it is used with React Native.
AI-written summary · about
chapters (10)
- 0:00Intro
- 0:38Welcome
- 1:11Flux
- 5:20Data specification properties
- 6:17Data specification response
- 7:19GraphQL
- 11:10GraphQL for components
- 17:15Relay
- 20:55pagination
- 22:50other features
related talks
24mRealtime React Apps with GraphQL
28mRelay: An Application Framework For React
17mBuilding The New Facebook With React and Relay
47mIntroduction to Graphql
01h 00mGraphQL - A query language to empower your API consumers
14mBuilding the New Facebook with React and Relay
11mA Brief History of GraphQL
47mReact, Relay and GraphQL — a perfectly normal component approach
