hyparam / hyperparam-cli

Hyperparam local dataset viewer
https://hyperparam.app
MIT License
2 stars 0 forks source link

Back button should restore state after cell view #9

Open platypii opened 1 month ago

platypii commented 1 month ago

Steps to repro:

  1. Scroll down in table view
  2. Double click cell
  3. Click back

View will have reset to the top.

platypii commented 1 month ago

Possible solutions:

  1. Before navigating to cell view, add a deep link to the current row to the back stack.
  2. Instead of changing location.href, use history.pushState to virtually change the url. Still needs some logic to manage react state, and restore position on back.