Pagination: placeholderData not working
Hey guys! I am just playing around with @tanstack/react-table and pagination and got the problem, that after switching the page, for a short time, I'll get "No results". I'll found this doc-page, which seems to cover exactly this problem: https://tanstack.com/query/latest/docs/framework/react/guides/paginated-queries
hovever, for some reason, I'll still get the flickering with
Page (data fetching): https://just-paste.it/jSfMtm16Et,
Table: https://just-paste.it/pyL87PSroQ
hovever, for some reason, I'll still get the flickering with
placeholderData: keepPreviousData. What could be the Problem? I attach my two components here. Anyone knows, what my Problem could be?Page (data fetching): https://just-paste.it/jSfMtm16Et,
Table: https://just-paste.it/pyL87PSroQ
Rendering paginated data is a very common UI pattern and in TanStack Query, it "just works" by including the page information in the query key:
