illustration for Simplify State Management with React Query

Simplify State Management with React Query

Instructor

Tomasz Ducin
54m closed-captioning
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.4
18
people completed
Bookmark
Download
RSS

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

  • Kolton Gagnon
    a week 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.

  • Creeland Provinsal
    3 weeks 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.

Course Content

54m • 17 lessons

    You might also like these resources:

    illustration for Introduction to Cloudflare Workers

    Introduction to Cloudflare Workers

    Kristian Freeman・36m・Course

    Become familiar with the Workers CLI wrangler that we will use to bootstrap our Worker project. From there you'll understand how a Worker receives and returns requests/Responses. We will also build this serverless function locally for development and deploy it to a custom domain.

    illustration for Create an eCommerce Store with Next.js and Stripe Checkout

    Create an eCommerce Store with Next.js and Stripe Checkout

    Colby Fayock・1h 4m・Course

    This is a practical project based look at building a working e-commerce store using modern tools and APIs. Excellent for a weekend side-project for your developer project portfolio

    illustration for Practical Git for Everyday Professional Use

    Practical Git for Everyday Professional Use

    Trevor Miller・1h・Course

    git is a critical component in the modern web developers tool box. This course is a solid introduction and goes beyond the basics with some more advanced git commands you are sure to find useful.