Skip to content
Discussion options

You must be logged in to vote

if the shouldDehydrateQuery function returns false the query is skipped for persistence but the state is in fact stored.

if shouldDehydrateQuery returns false, the query is not persisted to the external storage. Not sure what you mean with "state is in fact stored". Stored where? The data remains in the queryCache in memory if that's what you mean, yes. The persisters never delete anything from the queryCache.

This is all working fine with normal useQuery but when using useInfinityQuery given that the the query can return false if failed (look at if (query.state.status !== "success") return false;) when resetting the state it will delete any previous state already cached for that infin…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@raulriera
Comment options

@TkDodo
Comment options

@raulriera
Comment options

@TkDodo
Comment options

@raulriera
Comment options

Answer selected by raulriera
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants