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
280
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
650
The Artsy Omakase - Artsy x React Native 2018
artsyopensource
1
1.1k
Learning How to Learn - Artsy x React Native
artsyopensource
0
540
JavaScriptures 5 - Babel & Webpack
artsyopensource
0
620
JavaScriptures 4.2 - Local State
artsyopensource
0
580
JavaScriptures 3 - Styled Components
artsyopensource
1
460
JavaScriptures 2 - TypeScript
artsyopensource
0
390
JavaScriptures 1 - React
artsyopensource
0
400
Other Decks in Programming
See All in Programming
CSC307 Lecture 01
javiergs
PRO
0
690
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
930
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
540
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6k
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
160
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
990
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
1
400
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
620
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
420
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
140
Featured
See All Featured
AI: The stuff that nobody shows you
jnunemaker
PRO
2
240
Mind Mapping
helmedeiros
PRO
0
76
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
62
49k
Rails Girls Zürich Keynote
gr2m
96
14k
What does AI have to do with Human Rights?
axbom
PRO
0
2k
A designer walks into a library…
pauljervisheath
210
24k
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
130
Designing for humans not robots
tammielis
254
26k
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