Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
JavaScriptures 4.1 - Relay
Search
Artsy Open Source
April 11, 2018
Programming
0
230
JavaScriptures 4.1 - Relay
https://github.com/artsy/javascriptures/tree/master/4_intro-to-relay
Artsy Open Source
April 11, 2018
Tweet
Share
More Decks by Artsy Open Source
See All by Artsy Open Source
Adding React Native to an Existing App - Artsy x React Native 2018
artsyopensource
0
490
The Artsy Omakase - Artsy x React Native 2018
artsyopensource
1
860
Learning How to Learn - Artsy x React Native
artsyopensource
0
450
JavaScriptures 5 - Babel & Webpack
artsyopensource
0
450
JavaScriptures 4.2 - Local State
artsyopensource
0
410
JavaScriptures 3 - Styled Components
artsyopensource
1
370
JavaScriptures 2 - TypeScript
artsyopensource
0
340
JavaScriptures 1 - React
artsyopensource
0
360
Other Decks in Programming
See All in Programming
Kubernetes for Data Engineers: Building Scalable, Reliable Data Pipelines
sucitw
1
180
Workflow automationによるインシデント原因調査の自動化
showwin
1
120
現場で役立つモデリング 超入門
masuda220
PRO
12
2.6k
WEBエンジニア向けAI活用入門
sutetotanuki
0
290
offers_20241022_imakiire.pdf
imakurusu
2
310
Synchronizationを支える技術
s_shimotori
1
140
Prompt Engineering for Developers @ AWS Community Day Adria 2024
slobodan
0
120
CSC509 Lecture 07
javiergs
PRO
0
140
カラム追加で増えるActiveRecordのメモリサイズ イメージできますか?
asayamakk
3
1.1k
Honoの来た道とこれから
yusukebe
19
3k
Googleのテストサイズを活用したテスト環境の構築
toms74209200
0
240
プロジェクト新規参入者のリードタイム短縮の観点から見る、品質の高いコードとアーキテクチャを保つメリット
d_endo
1
950
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
93
13k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
228
52k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Learning to Love Humans: Emotional Interface Design
aarron
272
40k
Navigating Team Friction
lara
183
14k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
5
140
Teambox: Starting and Learning
jrom
132
8.7k
A better future with KSS
kneath
238
17k
Designing for Performance
lara
604
68k
Making Projects Easy
brettharned
115
5.9k
Transcript
Relay Let there be data in the firmament JavaScriptures IV.I
Alloy
Why have an API client at all?
Description • Provide application code with an interface abstracted away
from network/API details • Handle authentication in a single place • Handle caching in a single place • Handle errors in a single place Responsibilities of an API client
Relay A framework for data-driven React apps
Declare the data your components need with GraphQL, Relay determines
how and when to fetch your data. Declarative
GraphQL is written next to the views that rely on
them. Relay aggregates queries into efficient network requests. Colocation
Write GraphQL mutations and Relay offers automatic data consistency, optimistic
updates, and error handling. Mutations
Relay compiler uses your full GraphQL schema at compile-time to
ensure the data consistency Safety
Example
Competitors