2min chapter

React Native Radio cover image

RNR 255 - RTK Query with Lenz Weber-Tronic

React Native Radio

CHAPTER

Don't Duplicate the Data, Derive Your State From the Source Wherever Possible

React query doesn't get you that tight integration with your state management library, which is where you're going to be putting most of this stuff anyway. Usually you shouldn't fetch data from somewhere and then put it into your state. If there's a good source for it, don't duplicate it somewhere else or rather try to combine those things in the end. I'm definitely open to the idea of, no, just let that live in your query library.

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