T
TanStack13mo ago
graceful-blue

Is it possible to use setQueryData to update the persisted cache?

pretty much the title. I noticed that setting a query's cache doesn't call the persister. Is it at all possible?
3 Replies
quickest-silver
quickest-silver13mo ago
I can only guess that you are talking about experimental_createPersister ?
quickest-silver
quickest-silver13mo ago
GitHub
setQueryData() should be persisted too, right? · Issue #6310 · Ta...
Describe the bug I'm using the new experimental_createPersister like this: import { experimental_createPersister, type AsyncStorage } from "@tanstack/query-persist-client-core"; impor...
graceful-blue
graceful-blueOP13mo ago
Yes, this exactly what i'm looking for! thanks for the reply

Did you find this page helpful?