data loader only on first render
I have an overview of posts with pagination and filters and i want to make use of the function that preloads the first render with posts when you hover the link so i implemented this
this works perfect!
But whenever the user changes pagination the whole page including the loader will rerender, this takes a little while.
I don't want this loader to run again but only the query, so
this works perfect!
But whenever the user changes pagination the whole page including the loader will rerender, this takes a little while.
I don't want this loader to run again but only the query, so
placeholderData: keepPreviousData inside the query will actually work and the previous posts are shown until the query is finished reloading the next page.