This repository was archived by the owner on Nov 8, 2022. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork37
This repository was archived by the owner on Nov 8, 2022. It is now read-only.
client side GraphQL query cache #335
Open
Labels
Description
Apollo Client has the ability to cache query in client side:
exportconstclient=newApolloClient({ link,/* cache: new InMemoryCache(), */cache:newInMemoryCache(),connectToDevTools:true,/* shouldBatch: false, */// defaultOptions,})
the tricky part is to refresh cache when user do some mutate operation, like create post (post list should then be update)。
the officialwriteQuery
solution mentioned inapollo doc is complex and adjectived.
need better solution.