React Native Data Loader library
Does anyone know of any good data loader libraries that will prevent waterfalls in React Native? I know on web, frameworks like TanStack (https://tanstack.com/router/latest/docs/framework/react/guide/data-loading) and React Router (https://reactrouter.com/en/main/route/loader) have done a good job of hoisting data fetching code from the route level to the component level.
Our main goal is to prevent loading waterfalls where a nested component only starts its API call after the parent component is done rendering.
1 Reply
You can use TanStack query in React Native. I recently started using it to manage my Supabase queries and it is a dream compared to the hand-rolled chaos I had before.