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
190
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
380
The Artsy Omakase - Artsy x React Native 2018
artsyopensource
1
750
Learning How to Learn - Artsy x React Native
artsyopensource
0
370
JavaScriptures 5 - Babel & Webpack
artsyopensource
0
330
JavaScriptures 4.2 - Local State
artsyopensource
0
310
JavaScriptures 3 - Styled Components
artsyopensource
1
290
JavaScriptures 2 - TypeScript
artsyopensource
0
260
JavaScriptures 1 - React
artsyopensource
0
300
Other Decks in Programming
See All in Programming
educure_カリキュラム生操作マニュアル.pdf
linew_official
0
470
try!Swift Tokyo 2024 参加報告 LT
akidon0000
1
190
Folding Cheat Sheet #1
philipschwarz
PRO
0
210
Ruby Pattern Matching
bkuhlmann
0
920
PostmanでAPIの動作確認が楽になった話
h455h1
0
130
Java 22 Overview
kishida
1
170
Elm 0.19.0 Changes
bkuhlmann
0
480
デザインシステムで Tailwind CSSとCSS in JSに分散投資をしたら良かった話
fsubal
18
4.8k
ONE WEDGE_company_guide
1wedge_one
0
380
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
450
TYPO3 v13 – The road to LTS: What's new and new APIs
luisasofie_xoxo
0
180
Rubyでたのしむクリエイティブコーディング/Enjoy Creative coding with Ruby
chobishiba
1
160
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
43
9.7k
10 Git Anti Patterns You Should be Aware of
lemiorhan
646
57k
The Cult of Friendly URLs
andyhume
74
5.7k
Designing on Purpose - Digital PM Summit 2013
jponch
110
6.4k
Navigating Team Friction
lara
177
13k
KATA
mclloyd
14
12k
How GitHub Uses GitHub to Build GitHub
holman
468
290k
RailsConf 2023
tenderlove
2
530
Code Reviewing Like a Champion
maltzj
513
39k
A Modern Web Designer's Workflow
chriscoyier
688
190k
It's Worth the Effort
3n
180
27k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
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