DEV Community

Discussion on: Why you should use the URL to store state in your application

Collapse
 
romansorin profile image
Roman Sorin

Using URLs for storing application state (filtering, search, etc.) is something that we usually want at work, but implementation is often tough. It might be how our app is structured at work, but it feels almost like we have to start from scratch and write out tricky state management/lifecycle methods to keep things persistent.

Any ideas of how this can be tackled? My first assumption would be defining common utilities or hooks in a JS/React context, but I'm wondering if there are libraries out there that solve this specific problem.