React Universe On Air cover image

Databases for Mobile Apps: React Native & Realm | React Universe On Air #25

React Universe On Air

00:00

How to Use Conditional SQL in Redux

With the introduction of this like conditions, right, you can like actually select data more more precisely. And what's kind of nice is you can call sorted as well, which can define how you sort that data and imagine like you're displaying a list of people and your UI has a way to filter and sort. So if you have a use state up above that's basically keeping track of what you've selected for filtered values, then you can use that state is that dependency array into use query so that it will rerun that very when those objects update. Just like it doesn't need an extra SQL query when it does that. It's just modifying that that internal query and you'll get

Play episode from 26:39
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app