WomenInSoftwareEngineeringJP/speak-her-db

Refreshing the page loses pagination position

Opened this issue · 2 comments

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):

  • OS: OS X
  • Browser Chrome
  • Version 85

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

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 :/

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