Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

client side GraphQL query cache #335

Open
Assignees
mydearxym
@mydearxym

Description

@mydearxym

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp