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
570
The Artsy Omakase - Artsy x React Native 2018
artsyopensource
1
990
Learning How to Learn - Artsy x React Native
artsyopensource
0
510
JavaScriptures 5 - Babel & Webpack
artsyopensource
0
540
JavaScriptures 4.2 - Local State
artsyopensource
0
500
JavaScriptures 3 - Styled Components
artsyopensource
1
430
JavaScriptures 2 - TypeScript
artsyopensource
0
370
JavaScriptures 1 - React
artsyopensource
0
390
Other Decks in Programming
See All in Programming
ruby.wasmで多人数リアルタイム通信ゲームを作ろう
lnit
2
320
0626 Findy Product Manager LT Night_高田スライド_speaker deck用
mana_takada
0
130
システム成長を止めない!本番無停止テーブル移行の全貌
sakawe_ee
1
150
Code as Context 〜 1にコードで 2にリンタ 34がなくて 5にルール? 〜
yodakeisuke
0
120
アンドパッドの Go 勉強会「 gopher 会」とその内容の紹介
andpad
0
280
Bytecode Manipulation 으로 생산성 높이기
bigstark
2
390
生成AIコーディングとの向き合い方、AIと共創するという考え方 / How to deal with generative AI coding and the concept of co-creating with AI
seike460
PRO
1
340
deno-redisの紹介とJSRパッケージの運用について (toranoana.deno #21)
uki00a
0
160
都市をデータで見るってこういうこと PLATEAU属性情報入門
nokonoko1203
1
580
20250628_非エンジニアがバイブコーディングしてみた
ponponmikankan
0
530
Composerが「依存解決」のためにどんな工夫をしているか #phpcon
o0h
PRO
1
240
Benchmark
sysong
0
280
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
42
7.6k
GitHub's CSS Performance
jonrohan
1031
460k
KATA
mclloyd
30
14k
Become a Pro
speakerdeck
PRO
28
5.4k
Rebuilding a faster, lazier Slack
samanthasiow
82
9.1k
Building Adaptive Systems
keathley
43
2.6k
Why Our Code Smells
bkeepers
PRO
337
57k
Music & Morning Musume
bryan
46
6.6k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.8k
Optimising Largest Contentful Paint
csswizardry
37
3.3k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3.1k
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