1. 10
    Bypass Receded Views with React useTransition's timeoutMs Option
    2m 44s

Bypass Receded Views with React useTransition's timeoutMs Option

InstructorMichael Chan

Share this video with your friends

Send Tweet

Suspense components know one thing — how to show a fallback when promises are pending.

But that means, as we request new data is requested in those Suspense boundaries, the previous data will be replaced with the fallback.

This is known as the "receded state".

We can configure useTransition to present the the previous rendering of the component for a specified duration with the `timeoutMs' option.