The URI is the best place to store state

Craig Morris
1 min readJul 5, 2018

--

If you have state that can be stored in the URI, I highly suggest you store it there, because:

  • It’s understandable by the user
  • The user can easily change it
  • It can be easily shared
  • It can be easily saved / bookmarked
  • It’s had “Time Travel” since the first browser
  • Normal users can time travel through their state (no devtools)

--

--

Craig Morris
Craig Morris

Written by Craig Morris

Solutions Architect. Technical Lead. Full-stack Developer. http://craigmorris.io

No responses yet