therungg / therun-frontend

Frontend for therun.gg
https://therun-fr-therun.vercel.app
MIT License
23 stars 8 forks source link

Pagination reverting back to first page when going back. #248

Open Xoneris opened 2 months ago

Xoneris commented 2 months ago

Each page or content that features a pagination will revert back to it's first page when you go back. Not a big issue, but would be a nice QoL fix.

For example if you are on the 3rd page of the games site - you check out a game you are interested in and then go back. It will revert back to the 1st page of games.

Places where I've seen this issue: (there are probably more)

I'm not sure how hard this is to fix, since I'm not sure how the pagination is done. I might be able to solve this on my own. I have solved similar issues before in my own project where a piece of state would revert to it's default whenever the component is rendered instead of remembering where it was left off.