Follow

React + urql でようわかっとらんとこがある。

GraphQL でリストとってきて、一つの項目の中身を mutation で変更してるんだけど、その変更の後、頼んでないのにリストが再取得されてる。 pause: true してるのに。 reexecuteQuery も、呼ばれないとこにあるのに、なんでだー?

自分の理解がまちがってるんだろうけど、ようわからん。ちゃんと調べないとだめぽいな。

· · Web · 1 · 0 · 0

mutation すると強制的にキャッシュきえるんかな。。。でも pause true だしなー。

ちゃんと読んでないけどあたりぽい。

<snip>
ドキュメントキャッシュは、Mutationの __typename を見て汚れたキャッシュを捨てる仕組み
</snip>

zenn.dev/adwd/articles/f4c5c51

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!