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
220
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
470
The Artsy Omakase - Artsy x React Native 2018
artsyopensource
1
840
Learning How to Learn - Artsy x React Native
artsyopensource
0
440
JavaScriptures 5 - Babel & Webpack
artsyopensource
0
430
JavaScriptures 4.2 - Local State
artsyopensource
0
400
JavaScriptures 3 - Styled Components
artsyopensource
1
350
JavaScriptures 2 - TypeScript
artsyopensource
0
320
JavaScriptures 1 - React
artsyopensource
0
340
Other Decks in Programming
See All in Programming
Architecture Decision Record (ADR)
nearme_tech
PRO
1
690
メモリ最適化を究める!iOSアプリ開発における5つの重要なポイント
yhirakawa333
0
420
Prompt Cachingは本当に効果的なのか検証してみた.pdf
ttnyt8701
0
530
XStateでReactに秩序を与えたい
gizm000
0
730
watsonx.ai Dojo #2 生成AIを使ったアプリ開発入門編
oniak3ibm
PRO
0
160
React + TextAliveでカッコいいLyric Applicatioinを作ろう!!
tosuri13
0
400
rbs-inlineを導入してYARDからRBSに移行する
euglena1215
1
290
長期運用プロダクトの開発速度を維持し続けるためのリファクタリング実践例
wataruss
8
2.7k
Jakarta EE meets AI
ivargrimstad
1
500
Ruby Parser progress report 2024
yui_knk
2
230
[DroidKaigi 2024] Android ViewからJetpack Composeへ 〜Jetpack Compose移行のすゝめ〜 / From Android View to Jetpack Compose: A Guide to Migration
syarihu
1
630
How to Break into Reading Open Source
kaspth
2
210
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
21
3k
Raft: Consensus for Rubyists
vanstee
135
6.5k
Navigating Team Friction
lara
183
13k
Embracing the Ebb and Flow
colly
83
4.4k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
8.9k
GitHub's CSS Performance
jonrohan
1030
450k
How to Think Like a Performance Engineer
csswizardry
16
960
The Cult of Friendly URLs
andyhume
76
6k
A Modern Web Designer's Workflow
chriscoyier
691
190k
How To Stay Up To Date on Web Technology
chriscoyier
786
250k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
32k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
190
16k
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