Open JoeLim13 opened 2 years ago
you need to cache the fetched data somewhere. like in a global state. when you go back you retrieve the cached data and it should (assuming you have implemented scroll history. next.js has an experimental flag and does this for you)
How to maintain scrolling position after clicking back button on browser from one of the links clicked in the mapped infinite scrolling list?