Skip to content
Discussion options

You must be logged in to vote

I would like behavior that when sorting is changed all loaded pages are reset except the first one.

This is something you'd need to implement in user-land with setQueryData I believe. react-quey never deletes data it has already downloaded, unless you call reset, clear or it is garbage collected.

Partial deletion highly depends on your use-case. you want to the first one, somebody else might want the last one. I want them all, because if I've downloaded them already, why not show them. if you have a bi-directional infinite query, the "first" page might be the one in the middle, and so on :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ytnytn1
Comment options

Answer selected by ytnytn1
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