Suspense for data loading

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

Lesson 3.316m 41sAdvanced4.4k students

Lesson length

16:41

What this lesson covers

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

This lesson sits in Concurrent React, part of React Performance Engineering. It assumes what came before it and leads directly into the next lesson in the module.

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