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

Sdílet
Vložit
  • čas přidán 1. 05. 2024
  • 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
  • Věda a technologie

Komentáře • 22

  • @notjustdev
    @notjustdev  Před měsícem

    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 Před 2 měsíci +2

    With yout tutorials i have really learn much... Thanks much

  • @kinggrey2511
    @kinggrey2511 Před 2 měsíci

    Thank you so much for working this hard for us

  • @muhammadashfaq913
    @muhammadashfaq913 Před 10 dny

    Really informative. Learned a lot about tan stack query Highly recommeded

    • @notjustdev
      @notjustdev  Před 10 dny

      I'm glad you found it helpful 🙌

  • @mugerwaobadiah1621
    @mugerwaobadiah1621 Před 2 měsíci +1

    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 .

  • @yusufpolat9290
    @yusufpolat9290 Před měsícem

    Thanks for the content, it very helpful.

  • @muhammadzubair6105
    @muhammadzubair6105 Před měsícem

    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 Před měsícem

    please if possible please cover some advance concepts in react query

  • @sagedev
    @sagedev Před měsícem

    Which extensions do you use in vscode for react native? Please, can you make a video about this?

    • @notjustdev
      @notjustdev  Před měsícem

      Check this video out: czcams.com/video/oorfevovPWw/video.htmlsi=7v6z0jiq-hyu_Eyf

  • @Gustavo-vu1py
    @Gustavo-vu1py Před 2 měsíci

    how to open modal when presss movie list item? I try but modal appear like a page

    • @navinkumarsahu1159
      @navinkumarsahu1159 Před měsícem

      you must be using an Android device

    • @Gustavo-vu1py
      @Gustavo-vu1py Před měsícem

      @@navinkumarsahu1159 Yes I am, is the behavior of the modal different between devices?

    • @navinkumarsahu1159
      @navinkumarsahu1159 Před měsícem +1

      @@Gustavo-vu1py yes bro between platform not device

  • @yasserhy
    @yasserhy Před měsícem

    I thought there was a section on GraphQL :(

  • @user-pg7bu8lg3x
    @user-pg7bu8lg3x Před 28 dny

    link in profile

  • @user-fr5mn2lp6k
    @user-fr5mn2lp6k Před 2 měsíci

  • @walkwithzeus9318
    @walkwithzeus9318 Před 2 měsíci

    please upload a video how to stop all these useless ads of CZcams