Last active
September 18, 2020 06:24
-
-
Save pipopotamasu/2ef8e490fcbcd9da4040f00eccb0bf04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# タイトル | |
apollo client v3へのアップグレードをしました | |
# agenda | |
- はじめに | |
- ざっくりとした変更点 | |
- ハマったところ | |
- 終わりに | |
# 初めに | |
コロナ太り解消のため現在ダイエット中のフロントエンドエンジニア村上([@pipopotamasu](https://twitter.com/pipopotamasu3))です。 | |
8月にGraphQLライブラリの[apollo client](https://github.com/apollographql/apollo-client)をv2からv3へアップデートしたので、本日はそれについて書こうと思います。 | |
## TL;DR | |
- 自動的にデータを再fetchするような仕様変更が入りハマった | |
# ざっくりとした変更点 | |
apollo clientのv3は今年(2020年)の7月にリリースされました。 | |
主な変更点は以下になります(※ 変更が多いのでいくつか掻い摘んで列挙してます)。 | |
- `ApolloClient`のdefault export廃止。named exportのみに。 | |
- `apollo-boost`の廃止 | |
- cacheの`frozen/immutable`化 | |
- `client|cache.writeData`の削除 | |
※ 詳しくは[CHANGELOG](https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md#apollo-client-300)をご覧ください | |
# ハマったところ | |
# 終わりに |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment