Skip to content

Paginated Queries with keepPreviousData without request a new data on previous key. #5752

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

You must be logged in to vote

you can set initialData for a specific category only, e.g. the first one (0):

useQuery({ initialData: () => categoryId === 0 ? allMySinList : undefined })

Replies: 1 comment 4 replies

Comment options

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

@TkDodo
Comment options

@RakaDoank
Comment options

@TkDodo
Comment options

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