DEV Community


Discussion on: “Scroll Restoration”, React Router and my custom solution for React Studyboard

gurupal profile image
Gurupal Singh


I have one product listing page with infinite scroll pagination. Whenever i click on any of the product and goto product detail page and then press browser back button, it will takes me to top of the page instead of where i was. What should i do to retain by old state ?

gatsby version 2.19.18

So your solution will work in my case ?