-
Hi, I would like to get some advise on using infiniteQueries with SSR and maintaining scroll position on the web. My page currently uses SSR to prefetch the data with a default limit and dehydrates it to the client. The problem is when maintaining the scroll position of the page between page navigation/page refresh/browser back button. Let's say the user scrolled to page 4, clicks on a component and navigates away/or refreshes the page. Is there a way to maintain SSR (for SEO), and store the last visited page of the query? Thanks in advance for your advise. 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You probably shouldn't SSR when you have data in the cache on the frontend already. This is not so easy to get done with nextJs, there is a lengthy discussion going on here with some workarounds: |
Beta Was this translation helpful? Give feedback.
You probably shouldn't SSR when you have data in the cache on the frontend already. This is not so easy to get done with nextJs, there is a lengthy discussion going on here with some workarounds: