Data Fetching in React Native with TanStack Query (tutorial for beginners)

  Рет қаралды 14,900

notJust․dev

notJust․dev

Күн бұрын

This tutorial is a beginner friendly guide to Data Fetching in React Native using TanStack Query, formerly known as React Query.
This tutorial is sponsored by ✨IBM StepZen✨ - a GraphQL server with a unique architecture that helps developers build APIs fast and with less code
❇️ Get your free account here: bit.ly/3SXSNkz
In this video, we will be mastering TanStack Query, making it super easy to fetch remote data, whether it's from a Rest API or a GraphQL API. We'll dive into setting up TanStack Query in your React Native project, showing you how to handle data like a pro, with features like offline caching and persistence. Let's get started!
💻 Source Code: github.com/notJust-dev/TheMov...
❗Try our FREE 2-day Masterclass on notJust.Academy: assets.notjust.dev/masterclas...
📚 This video includes a lot of tools and technologies, providing an excellent opportunity to learn about:
- Introduction to TanStack Query V5 and its benefits
- Setting up TanStack Query in a React Native project
- Fetching data from a Rest API
- Querying data from a GraphQL API
- Implementing offline caching and data persistence
- Optimizing data fetching for performance
- Handling errors and loading states
📚 Enroll NOW in The Full-Stack Mobile Developer course and don’t miss out on your chance to become a 6-figure dev! Check out what our successful students are saying about their experience:
academy.notjust.dev/?...
💡 Have an idea for a future tutorial? Share it on our Idea Board: github.com/orgs/notJust-dev/d...
💬 Join the notJust Development gang and let's build together:
Twitter: / vadimnotjustdev
Instagram: / vadimnotjustdev
Facebook: / notjustdev
LinkedIn: / vadimsavin
Discord: / discord
Timecodes:
0:00 Intro to Tutorial and Project Setup
2:45 Starting a New Expo Project
6:36 Expo Router Navigation System & Template Cleanup
8:35 Customizing the navigation tabs and icons
12:49 Introduction to The Movie Database API and getting an API key
16:49 Starting the manual data fetching process without TanStack Query
22:21 Async Data Fetching & State Management
31:21 Implementing error handling and adjusting API request headers
44:14 Manual Data Fetching Summary & Challenges
45:44 Using TanStack Query for data fetching
55:00 Livestream Questions
57:47 Designing a Basic User Interface
1:05:23 Creating a Movie Details Page & Navigation Setup
1:09:47 Movie Details Data Fetching Setup
1:10:26 TMDB API for Movie Details Endpoint
1:12:06 Implementing fetch movie function to get dynamic details by movie ID
1:15:37 useQuery Setup for Movie Details
1:25:00 Installing and setting up React Query DevTools
1:29:30 Enhancing movie details page UI
1:33:37 The benefits of using TanStack Query in complex projects
1:37:07 Running a mutation, adding movies to a watchlist using TMDB API
2:01:33 Invalidating queries to refresh data across pages after mutations
2:10:41 Implementing Pagination & Infinite Scroll
2:26:33 Tutorial Wrap-up & React Query Docs
2:32:19 Outro
Disclaimer: This build is for educational purposes only. All views, opinions, and technology choices expressed in this video are my own and do not represent the views, opinions, or technology choices of any entity I have been, am now, or will be affiliated with.
#notjustdev #graphql #reactnative

Пікірлер: 23
@notjustdev
@notjustdev 2 ай бұрын
This tutorial is sponsored by ✨IBM StepZen✨ - a GraphQL server with a unique architecture that helps developers build APIs fast and with less code ❇ Get your free account here: bit.ly/3SXSNkz
@fonbarnabas2667
@fonbarnabas2667 2 ай бұрын
With yout tutorials i have really learn much... Thanks much
@kinggrey2511
@kinggrey2511 2 ай бұрын
Thank you so much for working this hard for us
@muhammadashfaq913
@muhammadashfaq913 22 күн бұрын
Really informative. Learned a lot about tan stack query Highly recommeded
@notjustdev
@notjustdev 22 күн бұрын
I'm glad you found it helpful 🙌
@yusufpolat9290
@yusufpolat9290 2 ай бұрын
Thanks for the content, it very helpful.
@notjustdev
@notjustdev 2 ай бұрын
Glad it was helpful!
@mugerwaobadiah1621
@mugerwaobadiah1621 2 ай бұрын
thanks so much for the tutorials,am kindly requesting for a simple app (CRUD) including authentication for admin and user with an api .I think this can be the best for beginners .
@kgethegodev
@kgethegodev 2 ай бұрын
I second this
@ShyamalKhalpada
@ShyamalKhalpada Күн бұрын
how i can used react query in react native class component ?
@muhammadzubair6105
@muhammadzubair6105 Ай бұрын
in pagination i think react query handles the pagination itself and we donot need to worry about incrementing or decrementing the page param, we just need to pass pageParam intially as one and then we do onEndreached we need to call fetchNextPage and it does the magic for us
@muhammadzubair6105
@muhammadzubair6105 Ай бұрын
please if possible please cover some advance concepts in react query
@sagedev
@sagedev 2 ай бұрын
Which extensions do you use in vscode for react native? Please, can you make a video about this?
@notjustdev
@notjustdev 2 ай бұрын
Check this video out: kzbin.info/www/bejne/paDVl5ispNuDjdksi=7v6z0jiq-hyu_Eyf
@user-fr5mn2lp6k
@user-fr5mn2lp6k 2 ай бұрын
@yasserhy
@yasserhy Ай бұрын
I thought there was a section on GraphQL :(
@Gustavo-vu1py
@Gustavo-vu1py 2 ай бұрын
how to open modal when presss movie list item? I try but modal appear like a page
@navinkumarsahu1159
@navinkumarsahu1159 2 ай бұрын
you must be using an Android device
@Gustavo-vu1py
@Gustavo-vu1py 2 ай бұрын
@@navinkumarsahu1159 Yes I am, is the behavior of the modal different between devices?
@navinkumarsahu1159
@navinkumarsahu1159 2 ай бұрын
@@Gustavo-vu1py yes bro between platform not device
@user-pg7bu8lg3x
@user-pg7bu8lg3x Ай бұрын
link in profile
@walkwithzeus9318
@walkwithzeus9318 2 ай бұрын
please upload a video how to stop all these useless ads of KZbin
@notjustdev
@notjustdev 2 ай бұрын
You get KZbin Premium 😅
Build Flappy Bird with React Native: Skia & Reanimated Tutorial
3:20:38
Building an Apple Wallet Clone with React Native Reanimated
2:00:07
notJust․dev
Рет қаралды 6 М.
Stupid man 👨😂
00:20
Nadir Show
Рет қаралды 26 МЛН
Normal vs Smokers !! 😱😱😱
00:12
Tibo InShape
Рет қаралды 28 МЛН
YouTube's Biggest Mistake..
00:34
Stokes Twins
Рет қаралды 65 МЛН
My Flutter Graduation Project 🎓
4:46
Mohab Gamal
Рет қаралды 38
React Query tips from the maintainer @tkDodo
16:19
Andrew Burgess
Рет қаралды 19 М.
Why I avoid useEffect For API Calls and use React Query instead
17:45
#1 Create a Simple Login Screen in React Native
5:15
WithFrame
Рет қаралды 9 М.
Building a MyFitnessPal Clone: React Native Tutorial for Beginners
3:59:52
How to Use the Shopify API and Make GraphQL Requests
17:27
Coding with Jan - Shopify Developer
Рет қаралды 3,5 М.
TanStack React Query v5  Full CRUD Tutorial in 40 Minutes
40:11
Huy Nguyen USA
Рет қаралды 4,7 М.
GPT-4o Deep Dive: the AI that CRUSHES everything
28:11
AI Search
Рет қаралды 22 М.
React tutorial in Hindi #60 Context api with Hooks | useContext
19:39
Code Step By Step
Рет қаралды 64 М.
APPLE УБИЛА ЕГО - iMac 27 5K
19:34
ЗЕ МАККЕРС
Рет қаралды 89 М.
Клавиатура vs геймпад vs руль
0:47
Balance
Рет қаралды 997 М.
Any Sound & Call Recording Option Amazing Keypad Mobile 📱
0:48
Tech Official
Рет қаралды 326 М.