Apollo Client has the ability to cache query in client side: ```js export const client = new ApolloClient({ link, /* cache: new InMemoryCache(), */ cache: new InMemoryCache(), 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 official `writeQuery` solution mentioned in [apollo doc](https://www.apollographql.com/docs/react/advanced/caching.html) is complex and adjectived. need better solution.
Apollo Client has the ability to cache query in client side:
the tricky part is to refresh cache when user do some mutate operation, like create post (post list should then be update)。
the official
writeQuerysolution mentioned in apollo doc is complex and adjectived.need better solution.