There are not enough "keep previous data" feature - return the previous key's data until the new data has been loaded.
This feature is well explained in swr: https://swr.vercel.app/docs/advanced/understanding#return-previous-data-for-better-ux
There is an example on @nanostores /query: https://codesandbox.io/p/sandbox/nanostories-query-react-paging-rick-morty-q6ctwm
It shows how the content "jumps" when the user navigates to the next page (when the cache is empty).
There are not enough "keep previous data" feature - return the previous key's data until the new data has been loaded.
This feature is well explained in swr: https://swr.vercel.app/docs/advanced/understanding#return-previous-data-for-better-ux
There is an example on
@nanostores /query: https://codesandbox.io/p/sandbox/nanostories-query-react-paging-rick-morty-q6ctwmIt shows how the content "jumps" when the user navigates to the next page (when the cache is empty).