Course lesson

Avoid this Common Suspense Gotcha in by Reading Data From Components

Suspense can have an unfriendly learning curve. Components with suspended content need a component boundary. Resource reads can't happen in the same component as the Suspense and error boundaries components.

Duration
4 min
Access
Pro
Transcript
Available

Suspense can have an unfriendly learning curve.
Components with suspended content need a component boundary.
Resource reads can't happen in the same component as the Suspense and error boundaries components.

When you have your Suspense and error boundary components in place but still get errors about them absence, you probably need to move a read() call into a component.