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
270
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
590
The Artsy Omakase - Artsy x React Native 2018
artsyopensource
1
1k
Learning How to Learn - Artsy x React Native
artsyopensource
0
520
JavaScriptures 5 - Babel & Webpack
artsyopensource
0
550
JavaScriptures 4.2 - Local State
artsyopensource
0
510
JavaScriptures 3 - Styled Components
artsyopensource
1
440
JavaScriptures 2 - TypeScript
artsyopensource
0
380
JavaScriptures 1 - React
artsyopensource
0
390
Other Decks in Programming
See All in Programming
あなたの知らない「動画広告」の世界 - iOSDC Japan 2025
ukitaka
0
410
実践AIチャットボットUI実装入門
syumai
7
2.5k
ポスターセッション: 「まっすぐ行って、右!」って言ってラズパイカーを動かしたい 〜生成AI × Raspberry Pi Pico × Gradioの試作メモ〜
komofr
0
1k
GitHub Actions × AWS OIDC連携の仕組みと経緯を理解する
ota1022
0
240
CSC509 Lecture 03
javiergs
PRO
0
330
明日から始めるリファクタリング
ryounasso
0
120
ソフトウェア設計の実践的な考え方
masuda220
PRO
3
500
Six and a half ridiculous things to do with Quarkus
hollycummins
0
100
私はどうやって技術力を上げたのか
yusukebe
43
17k
Things You Thought You Didn’t Need To Care About That Have a Big Impact On Your Job
hollycummins
0
160
After go func(): Goroutines Through a Beginner’s Eye
97vaibhav
0
240
SpecKitでどこまでできる? コストはどれくらい?
leveragestech
0
580
Featured
See All Featured
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.6k
Visualization
eitanlees
148
16k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
Embracing the Ebb and Flow
colly
88
4.8k
Why Our Code Smells
bkeepers
PRO
339
57k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
32
2.2k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
850
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
54
3k
A designer walks into a library…
pauljervisheath
209
24k
Speed Design
sergeychernyshev
32
1.1k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
127
53k
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