Lesson 3.3

Suspense for data loading

Suspense moves loading state out of the component and into its boundary, so you stop threading isLoading through the tree.

Duration
17m
Level
Advanced
Students
4.4k students

Overview

Suspense moves loading state out of the component and into its boundary, so you stop threading isLoading through the tree.

In this lesson you will:

  • Place boundaries where a meaningful fallback exists
  • Avoid a single boundary that blocks the whole page
  • Combine Suspense with error boundaries for failures

Resources

React documentation

The official reference for the tools used in this lesson.