Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
apollo-link-stateで Local State を管理する世界/apollo-l...
Search
takanorip
November 19, 2018
Programming
710
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
apollo-link-stateで Local State を管理する世界/apollo-link-state
takanorip
November 19, 2018
Transcript
17 slides
apollo-link-stateで Local Stateを 管理する世界 Takanori Oki Roppongi.js 2018/11/19
自己紹介 • Takanori Oki ( @takanorip ) • 株式会社FOLIO フロントエンドエンジニア
• React / Vue.js / Polymer ( Web Components ) • フォントが好き
None
Apollo Client • GraphQLをクライアントサイドで扱うための ライブラリ • vue-apolloやreact-apolloのように フレームワークやライブラリごとに ライブラリが用意されている
Apollo Link • Apollo Clientでサーバーとやり取りをする ためのインターフェース • Link をつなぎ合わせて処理を定義する •
Link とは middleware のようなもので、 エラーハンドリングやポーリングなども ここで行う
Link1 Link2 Link3 Client Server
apollo-cache-inmemory • Apollo Clientはサーバーから取得したデータ をメモリ上にキャッシュすることができる • このキャッシュに対してクエリを投げる こともできる • キャッシュできるのはサーバー上にデータが
あるもののみ
今までは サーバーとの通信しか Apollo Clientで操作 できなかった
Redux Apollo Client Server Local State
apollo-link-state
apollo-link-state • Apollo ClientでLocal Stateを扱うための ライブラリ • サーバーと通信する場合と同じ様に、 クエリとミューテーションを使用する
Apollo Client Server Local State
None
None
None
Schema...? • まだよくわからない • ここにちょっと書いてある • https://www.apollographql.com/docs/link/ links/state.html#type-checking
おわり (フォント:源柔ゴシック)
More Decks by takanorip
See All by takanorip
今さら理解するウェブフォントver.2026
takanorip
3
1.2k
AI-Slopなデザインを生まないためのデザインプロセス戦略
takanorip
10
6.6k
「見せる」登壇資料デザインの極意
takanorip
7
2k
Design System Documentation Tooling 2025
takanorip
3
3.2k
デザインエンジニアの延長にデザインマネージャーとしての可能性を探る
takanorip
1
1.4k
Tools for Design Engineers other than LLM in the LLM era
takanorip
1
940
Bulletproof Design System with TypeScript
takanorip
7
5.5k
Eleventy3.0 で始める爆速個人ブログ開発!
takanorip
0
330
Webフォント選定の極意!フォントの基本から最新トレンドまで徹底解説
takanorip
6
1.3k
Other Decks in Programming
See All in Programming
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.5k
あなたはMCPの機能を、まだ知らない。
4geru
1
140
Будущее локальных LLM – Алексей Голобурдин, PythoNN
sobolevn
0
120
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
170
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
140
Goコンパイラを作ってGoをもっと理解する / Build a Go compiler to better understand Go
ikura_hamu
0
130
Apple Intelligenceとオンデバイス時代の到来
yahir0
0
240
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
750
Distance field of Julia set
kinakomoti321
0
320
Vue.jsで作る空間解析アプリとCapacitorプラグインのData Bridge
hal_spidernight
1
170
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
210
Seven New Principles of Software Engineering
yegor256
0
500
Featured
See All Featured
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
300
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Designing for humans not robots
tammielis
254
26k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
KATA
mclloyd
PRO
35
16k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
520
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
HDC tutorial
michielstock
2
1k
Making Projects Easy
brettharned
120
6.9k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.8k
What's in a price? How to price your products and services
michaelherold
247
13k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.6k