2min chapter

React Round Up cover image

Migrating to React Query from Redux with Pierre Hedkvist - 202

React Round Up

CHAPTER

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.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode