Comment Comment by jraph > I make sure that as much state as possible is saved in a URLDo you have advice on how to achieve this (for purely client-side stuff)?- How do you represent the state? (a list of key=value pair after the hash?)- How do you make sure it stays in sync?-- do you parse the hash part in JS to restore some stuff on page load and when the URL changes?- How do you manage previous / next?- How do you manage server-side stuff that can be updated client side? (a checkbox that's by default checked and you uncheck it, for instance) parent jraph 1 year ago
Do you have advice on how to achieve this (for purely client-side stuff)?
- How do you represent the state? (a list of key=value pair after the hash?)
- How do you make sure it stays in sync?
-- do you parse the hash part in JS to restore some stuff on page load and when the URL changes?
- How do you manage previous / next?
- How do you manage server-side stuff that can be updated client side? (a checkbox that's by default checked and you uncheck it, for instance)