AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Store State in the URL
A recent article is kind of interesting about storing state in the URL. So it's essentially what we created was a custom hook that functions similarly to a use state hook, but then it also synchronize the state with the URL. We made like a React hook basically that will synchronize between the URL, like the query parameters that's in the URL with a state. And so there are some things you have to think of there, like synchronizing the kind of key and value with the state and the URL.