8. Relay - A Brief History
@nikolasburk
01/2015
1st talk about Relay
@React.js Conf 2015
2012
FB starts using
GraphQL
02/2015
š£
Announcing Relay will
be open-source
08/2015
Relay is
open-source š
08/2016
š£
Announcing plans
for āRelay 2ā
04/2017
Introducing
Relay Modern
9. GraphQL Clients
- homegrown by Facebook
- main goal: performance
- learning curve
- community-driven
- main goal: ļ¬exibility
- easy-to-get-started
@nikolasburk
11. Traditional Data Fetching with REST
1. construct & send HTTP request
(e.g. with fetch)
2. receive & parse server response
3. store data locally
4. display data in UI
š
@nikolasburk
12. Declarative Data Fetching with GraphQL
1. describe data dependencies
2. display data in UI
š
@nikolasburk
13. Relayās core idea is to couple a view
component with its data dependencies
@nikolasburk
55. The Relay Environment š
ā¦.bundles together the conļ¬guration, cache storage, and
network-handling that Relay needs in order to operate.
const environment = new Environment({
network,
store,
})
@nikolasburk