WomenInSoftwareEngineeringJP / speak-her-db

Database of women speakers in Japan.
https://speakher.jp
MIT License
25 stars 25 forks source link

Refreshing the page loses pagination position #183

Open ann-kilzer opened 4 years ago

ann-kilzer commented 4 years ago

Describe the bug When I refresh the page, I lose my position in the paginated results

To Reproduce Steps to reproduce the behavior:

  1. Go to https://speakher.jp/ and scroll down to the list of speakers
  2. Click the pagination arrows to go to results 51-100
  3. Refresh the browser page
  4. Notice you are on results 1-50!

Expected behavior Remain on 51-100

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context This could be solved by setting the current position in local storage

dominikeinkemmer commented 4 years ago

Oh I didn't think about page refresh at all 😱

I think this will be difficult if not impossible though as long as airtable is the datasource as offset is ignored in the airtablejs sdk so it would be difficult to start fetching next page results :/

ann-kilzer commented 4 years ago

Ahh, perhaps easier once we have a backend? #138