Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Understand How React.lazy Communicates Loading Status to Suspense and Error Boundaries

    reactReact
    ^0.0.0-experimental-b53ea6ca0

    React Suspense won't magically detect and inspect promises in your code. You have to wrap promises to communicate promise status to Suspense and Error Boundaries.

    React.lazy acts as a model for which states we need our promise wrappers to handle.