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 ?
Same issue while working on a restaurant / e-commerce dashboard project here… I’ve came across an article which helped me to solve the issue on my particular case, here it is: blog.logrocket.com/implementing-sc...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi
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 ?
Did you get any sloution for this yet?
Same issue while working on a restaurant / e-commerce dashboard project here… I’ve came across an article which helped me to solve the issue on my particular case, here it is: blog.logrocket.com/implementing-sc...