Skip to content

PersistQueryClientProvider performance question #6794

Answered by TkDodo
joshbtay asked this question in Q&A
Discussion options

You must be logged in to vote

Wouldn't that basically serialize all of the data in the app every time it gets called?

yes, because we store it in one storage entry. for fine grained persistence, please checkout the createPerister api: https://tanstack.com/query/v5/docs/framework/react/plugins/createPersister

there are tradeoffs in both approaches

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@TkDodo
Comment options

@joshbtay
Comment options

@TkDodo
Comment options

@TkDodo
Comment options

Answer selected by joshbtay
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants