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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Artsy Open Source
April 11, 2018
Programming
300
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
JavaScriptures 4.1 - Relay
https://github.com/artsy/javascriptures/tree/master/4_intro-to-relay
Artsy Open Source
April 11, 2018
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
680
The Artsy Omakase - Artsy x React Native 2018
artsyopensource
1
1.2k
Learning How to Learn - Artsy x React Native
artsyopensource
0
590
JavaScriptures 5 - Babel & Webpack
artsyopensource
0
640
JavaScriptures 4.2 - Local State
artsyopensource
0
610
JavaScriptures 3 - Styled Components
artsyopensource
1
480
JavaScriptures 2 - TypeScript
artsyopensource
0
410
JavaScriptures 1 - React
artsyopensource
0
410
Other Decks in Programming
See All in Programming
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
220
VibeCodingからAgenticWorkflowへ
starfish719
0
680
仕様書を書く前にハーネスを作る - Agent Native開発は「探索を速く、判定を固く」
gotalab555
4
1.7k
テーブルをDELETEした
yuzneri
0
150
5分で問診!Composer セキュリティ健康診断
codmoninc
0
1.1k
Flow は今どうなっているか
mizdra
PRO
0
640
Cloudflare is Agents
chimame
0
170
レビュー履歴をAIに食わせて、 Compose移行を加速するs
shihochan
0
140
わからない話を追いかけたら、プログラミング言語を作る側にいた
ydah
3
530
AI時代のPHPer生存戦略 ~「言語、もうなんでもよくない?」に本気で向き合う~
vivion
0
820
ここ半年くらいでAIに作らせたR用ツール
eitsupi
0
390
freeeにおけるEvalsの実践例の紹介
freee
PRO
0
130
Featured
See All Featured
Accessibility Awareness
sabderemane
1
180
Fireside Chat
paigeccino
42
4k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
440
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
210
A designer walks into a library…
pauljervisheath
211
24k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
650
The World Runs on Bad Software
bkeepers
PRO
72
12k
Navigating Weather and Climate Data
rabernat
0
480
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
Making the Leap to Tech Lead
cromwellryan
135
10k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
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