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
250
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
510
The Artsy Omakase - Artsy x React Native 2018
artsyopensource
1
910
Learning How to Learn - Artsy x React Native
artsyopensource
0
470
JavaScriptures 5 - Babel & Webpack
artsyopensource
0
470
JavaScriptures 4.2 - Local State
artsyopensource
0
430
JavaScriptures 3 - Styled Components
artsyopensource
1
390
JavaScriptures 2 - TypeScript
artsyopensource
0
350
JavaScriptures 1 - React
artsyopensource
0
370
Other Decks in Programming
See All in Programming
命名をリントする
chiroruxx
1
570
非ブラウザランタイムとWeb標準 / Non-Browser Runtimes and Web Standards
petamoriken
0
410
Zoneless Testing
rainerhahnekamp
0
150
テストコードのガイドライン 〜作成から運用まで〜
riku929hr
6
1.3k
Flatt Security XSS Challenge 解答・解説
flatt_security
0
590
短期間での新規プロダクト開発における「コスパの良い」Goのテスト戦略」 / kamakura.go
n3xem
2
210
Итераторы в Go 1.23: зачем они нужны, как использовать, и насколько они быстрые?
lamodatech
0
1.3k
ゆるやかにgolangci-lintのルールを強くする / Kyoto.go #56
utgwkk
2
780
EC2からECSへ 念願のコンテナ移行と巨大レガシーPHPアプリケーションの再構築
sumiyae
3
540
Kaigi on Railsに初参加したら、その日にLT登壇が決定した件について
tama50505
0
140
iOS開発におけるCopilot For XcodeとCode Completion / copilot for xcode
fuyan777
1
1.2k
return文におけるstd::moveについて
onihusube
1
1.4k
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
298
20k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
3
340
Building Your Own Lightsaber
phodgson
104
6.2k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.4k
Unsuck your backbone
ammeep
669
57k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.8k
Optimizing for Happiness
mojombo
376
70k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
850
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
550
BBQ
matthewcrist
85
9.4k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Embracing the Ebb and Flow
colly
84
4.5k
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