initialData with placeholderData? #8251
Unanswered
J4v4Scr1pt
asked this question in
Q&A
Replies: 1 comment 4 replies
-
when the key changes ( you have to be specific with
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm building a page where we have a table. The application is built in NextJs 14 and we initially fetch the data on the server and provide the data to the client component where we initiate the useQuery initialData with the data fetched on the server.
Then we want to keep the previous data when the user step to the next page of the table, then we use the placeholderData to do that.
But what happens now is that every time you press next page on the pagination stepper the table shows the initalData as a "placeholder" on every page.
We have tried using only placeholderData, but same behavior.
What are we doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions