illustration for Simplify State Management with React Query
pro

Simplify State Management with React Query

Instructor

Tomasz Ducin

54m closed-captioning
·
17 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.7
44
people completed
Published 10 months ago
|
Updated 10 months ago

When dealing with external data in React it's easy for the async code to start piling up, your types to become a mess, and your component state to get out of hand.

React Query (a.k.a TanStack Query) takes care of all this for you.

Even if you just learn the basics you'll be able to clean up your code and get to take advantage of some really nice caching features.

In this course you'll learn all of this in under an hour:

  • How to organize the different layers of code involved in data fetching
  • Conditional rendering based on various query states
  • How to effectively use TypeScript with React Query
  • Sharing fetched data across components
  • Executing parallel queries
  • Analyzing queries with the dev-tools
  • Easy stale-time and garbage collection config
  • Creating reusable settings with the queryOptions API

Click here to get started!

Learner Reviews

  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    I'be been using SWR a work, but for my next project I'm working on, React Query is what I'm going with. Really enjoyed this course Tomasz!

    Nick Taylor
    5 months ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    I’d used React Query on a project with my teammates adopting some of the more advanced options. Now I understand why they made those design decisions and can share with my team about the Dev Tools, which I’m not sure we currently use. This course covered all the use cases I would need for a given project. Although, I wasn’t sure if the instructor covered throttling the server-side calls, if that’s an option.

    Jose
    6 months ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Clear and precisecommunication with

    Andre Ferreira
    9 months ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    I did learn some things regarding the statuses of queries, type narrowing with isPending and how the devTools work.

    Kolton Gagnon
    9 months ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Got me started! I appreciate that this course dug into the types.

    Creeland Provinsal
    10 months ago

Course Content

54m • 17 lessons

    You might also like these resources:

    illustration for Manage Application State with Jotai Atoms
    Daishi Kato • Course • 18m

    jotai gives you a minimalistic API that you can use that separates your state management from your UI. Don't have to set up any boilerplate like actions, reducers, etc.

    illustration for React State Management Expert Interviews
    Joel Hooks ・7h 49m・Podcast

    This is a series of videos where you'll find part interview and part screen share with experts. They focus on React, but the underlying principles are valid for UI work in general.

    illustration for Create an eCommerce Store with Next.js and Stripe Checkout
    Colby Fayock • 1h4m • Course

    Accept payments & sell products powered by Stripe and the best of the JAMStack.